javascript - calling api after npm run build returns index.html
阿神
阿神 2017-05-16 17:07:25
0
1
808

After the vue project is packaged, static and index.html are generated, and then nginx is configured to point to index.html. When calling the api, the content of index.html is returned.

Such a problem will not occur during development. The proxyTable forwarding API is configured in Vue to port 3000. Does nginx also need to configure the forwarding API?

阿神
阿神

闭关修行中......

reply all(1)
洪涛

There is something wrong with your nginxlocation configuration


location / {
   
        index index.html; 
    }
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template