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

当代理开启时,开发环境下baseURL没有加上VITE_APP_PROXY_PREFIX前缀 #159

Open
nikinikinico opened this issue Aug 14, 2024 · 1 comment

Comments

@nikinikinico
Copy link

Bug report(问题描述)

当代理开启时,开发环境下baseURL没有加上VITE_APP_PROXY_PREFIX前缀,这样vite的proxy方案不会检验到prefix前缀。

minimal reproduction(最小可还原代码)

代码在src/interceptors/request.ts文件,是不是这样改会好一点
image

@feige996
Copy link
Contributor

feige996 commented Sep 6, 2024

不是的,本地代理会转发过去的。上线的话nginx会转发。

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

No branches or pull requests

2 participants