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
在webpack.config.dev.js中添加了代理的相关设置,但是在测试环境中每次fetch的时候 请求地址还是没有成功代理,
devServer: { historyApiFallback: true, host: 'localhost', port: '3006', hot: true, inline: true, stats: { colors: true }, proxy: { '/api/*': { target: 'http://XXXXX', pathRewrite: {'^/api' : '/api'}, changeOrigin: true } } },
The text was updated successfully, but these errors were encountered:
可以直接设置package.json.#12 (comment)
Sorry, something went wrong.
No branches or pull requests
在webpack.config.dev.js中添加了代理的相关设置,但是在测试环境中每次fetch的时候 请求地址还是没有成功代理,
devServer: { historyApiFallback: true, host: 'localhost', port: '3006', hot: true, inline: true, stats: { colors: true }, proxy: { '/api/*': { target: 'http://XXXXX', pathRewrite: {'^/api' : '/api'}, changeOrigin: true } } },
The text was updated successfully, but these errors were encountered: