We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
系统环境为MAC 直接用 ykit s -p 4000 启动服务器,然后前端请求接口也是127.0.0.1:4000; 请教下怎么设置代理呢,我试过在ykit.config的 server 中加上 proxy: { '/api': { target: 'http://127.0.0.1:3000', changeOrigin: true } } 但是没有生效
proxy: { '/api': { target: 'http://127.0.0.1:3000', changeOrigin: true } }
The text was updated successfully, but these errors were encountered:
解决了吗
Sorry, something went wrong.
没有,后面用 npm run dev,前端后端都在本地启动;之前是因为想跟后端同事联调才提的这个,后面后端也是我在弄。。。
No branches or pull requests
系统环境为MAC
直接用 ykit s -p 4000 启动服务器,然后前端请求接口也是127.0.0.1:4000;
请教下怎么设置代理呢,我试过在ykit.config的 server 中加上
proxy: { '/api': { target: 'http://127.0.0.1:3000', changeOrigin: true } }
但是没有生效
The text was updated successfully, but these errors were encountered: