vite-plugin-inspect
vite-plugin-inspect copied to clipboard
fix: fix redirect not working
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
@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