调整设计师前端开发代理配置

This commit is contained in:
2026-07-13 15:21:00 +08:00
parent 630b12e323
commit 86d738dfcb
2 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
VITE_API_BASE_URL=/api VITE_API_BASE_URL=/api
VITE_ADMIN_API_BASE_URL=/admin/api VITE_ADMIN_API_BASE_URL=/admin/api
VITE_DEV_PROXY_TARGET=http://127.0.0.1:80 VITE_DEV_PROXY_TARGET=http://dev.yunail.art:18888
VITE_APP_NAME=甲屿云 VITE_APP_NAME=甲屿云
VITE_APP_NAME_EN=Fingertip Designer VITE_APP_NAME_EN=Fingertip Designer
VITE_APP_TITLE=Fingertip Designer 甲屿云 VITE_APP_TITLE=Fingertip Designer 甲屿云
+2 -7
View File
@@ -40,7 +40,7 @@ export default defineConfig(({ mode }) => {
}, },
server: { server: {
port: 3000, port: 3000,
host: true, host: '0.0.0.0',
proxy: { proxy: {
'/admin/api': { '/admin/api': {
target: proxyTarget, target: proxyTarget,
@@ -53,12 +53,7 @@ export default defineConfig(({ mode }) => {
rewrite: path => proxyToCoreDirectly ? path.replace(/^\/api/, '') : path rewrite: path => proxyToCoreDirectly ? path.replace(/^\/api/, '') : path
} }
}, },
allowedHosts: [ allowedHosts: true
'localhost',
'127.0.0.1',
'2666.online',
'wcy111.top'
]
}, },
build: { build: {
rollupOptions: { rollupOptions: {