vite-plugin-inspect icon indicating copy to clipboard operation
vite-plugin-inspect copied to clipboard

fix: fix redirect not working

Open yzydeveloper opened this issue 1 year ago • 1 comments

Description

Sorry, the original pr/37 was closed due to conflicting fixes, so I re-created

When I use inspect-plugin and connect-history-api-fallback to server.middlewares at the same time, connect-history-api-fallback will redirect req.url to index.html when rewrite is not found , causing inspect-plugin to fail

Linked Issues

Additional context

yzydeveloper avatar Sep 07 '22 02:09 yzydeveloper

@antfu You look up connect-history-api-fallback line 82, when it doesn't match When it comes to rewrite, it will redirect req.url to /index.html

image

yzydeveloper avatar Sep 07 '22 02:09 yzydeveloper