Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置了 base 参数,访问 http://localhost:[port][base] 时报错 ERR_TOO_MANY_REDIRECTS #33

Closed
jiadesen opened this issue Apr 4, 2023 · 4 comments · Fixed by #34

Comments

@jiadesen
Copy link
Contributor

jiadesen commented Apr 4, 2023

如题,重定向次数过多错误

@emosheeep
Copy link
Owner

看下你配置的redirect规则

@jiadesen
Copy link
Contributor Author

jiadesen commented Apr 4, 2023

history 指定 index 使其与 vite 服务保持一致就可以了,文档:https://github.com/bripkens/connect-history-api-fallback#index

@jiadesen
Copy link
Contributor Author

jiadesen commented Apr 4, 2023

看下你配置的redirect规则

没有配置

@emosheeep
Copy link
Owner

history 指定 index 就好啦,文档:https://github.com/bripkens/connect-history-api-fallback#index

强啊👍🏻

@emosheeep emosheeep linked a pull request Apr 4, 2023 that will close this issue
@jiadesen jiadesen closed this as completed Apr 4, 2023
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 a pull request may close this issue.

2 participants