Vue-cli reverse proxy and Code Cloud Preview function

I would like to ask the gods that if the IP address of the reverse proxy is set in the build in config/index.js, and then the dist file is transferred to Ciyun after the project npm run build, the error that the server address can not be found will be reported during access? Why is that? Is it possible that reverse proxy settings can only be used in local projects?

Mar.21,2021

that parameter is originally aimed at the local environment. To put it bluntly, it is forwarded by a proxy made by node. Build does not handle it, so it is of no use.

Menu