Home > front end >  Vue agent packaging interface 404
Vue agent packaging interface 404

Time:09-16

Vue agent solve cross-domain and packaged after an error 404 could you tell me how to solve, this is the code of the agent, please bigwig

CodePudding user response:

What 404? May not cross domain problems

CodePudding user response:

if I remember correctly, devServer configuration is local, namely Webpack built-in apacheHttp server configuration, only for the use of local development,
NPM run after the build things has nothing to do with this,

CodePudding user response:

Consult the
https://www.cnblogs.com/gaoxiaoxuner/p/11887159.html

CodePudding user response:

After the packaging configuration nginx cross-domain, anyway has nothing to do with local this configuration,

CodePudding user response:

After packaging more HTTP requests/API to have deleted project all/API

CodePudding user response:

After webpack agent is only effective local development, packaging need to build in the deployment environment nginx proxy
  •  Tags:  
  • Ajax
  • Related