Skip to content

fix: fix redirect not working#38

Open
yzydeveloper wants to merge 1 commit intoantfu-collective:mainfrom
yzydeveloper:fix-redirect-not-working
Open

fix: fix redirect not working#38
yzydeveloper wants to merge 1 commit intoantfu-collective:mainfrom
yzydeveloper:fix-redirect-not-working

Conversation

@yzydeveloper
Copy link

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
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant