perf: 前后分离部署不能使用公共链接

This commit is contained in:
fit2cloud-chenyw 2023-10-30 17:55:33 +08:00
parent c2409e5521
commit 439c10276c

View File

@ -6,5 +6,24 @@ ENV = 'staging'
# base api
VUE_APP_BASE_API = '/de-api/'
VUE_CONTEXT_PATH = 'de-api/'
VUE_CONTEXT_PATH = '/'
#for nginx conf
#location / {
# root /Users/admin/Downloads/dist/;
# index index.html index.htm;
#}
#location ~* \.(html|htm)$ {
# if ($uri = '/de-api/link.html') {
# rewrite ^/de-api/(.*)$ /$1 redirect;
# }
# root /Users/admin/Downloads/dist/;
#}
#location /de-api/ {
# #rewrite ^/de-api/#/(.*)$ /$1 break;
# proxy_pass http://localhost:8081/de-api/;
# proxy_set_header X-Real-IP $remote_addr;
# server_name_in_redirect on;
#}