How to debug an interface for a project built with vue-cli?

  node.js, question

Does npm run build then upload the dist directory to the server? This is very inefficient.

Let me first assume that the interfaces you mentioned are ajax requests such as get and post. You can stay at./config/index.jsTheproxyTableIt contains the interfaces that need proxies. For example, the port number of your project is8080, the background port is3000And you have one/dosthTo debug the interface of, you just need toproxyTableInside wrote:

 proxyTable: {
 '/dosth': {
 target: 'localhost:3000',
 changeOrigin: true

Just do it ~
See specific documentsHere