Vue3 部署
打包部署到nginx
打包命令
npm run build
配置nginx
server {
listen 8001;
server_name localhost;
location / {
root E:/java/07_vuejs/source/vue12/dist;
index index.html;
add_header 'Access-Control-Allow-Origin' *;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}