Vue项目打包部署Nginx配置

配置如下

server {
    listen       80;
    server_name  localhost;


    location / {
      root   /app;    
      index  index.html;
      try_files $uri $uri/ /index.html;
    }
}

其中:

/app 是网站根目录

参考
https://cli.vuejs.org/zh/guide/deployment.html

你可能感兴趣的:(Vue项目打包部署Nginx配置)