fix 修改部署环境
This commit is contained in:
@@ -37,4 +37,4 @@ VITE_APP_SSE = true
|
||||
|
||||
# http://192.168.0.214:8089
|
||||
# VITE_BASE_API = "http://47.104.208.94:8089"
|
||||
VITE_BASE_API = "http://192.168.0.214:8089"
|
||||
VITE_BASE_API = "http://47.104.215.165:8080"
|
||||
|
||||
@@ -38,4 +38,4 @@ VITE_APP_WEBSOCKET = false
|
||||
# sse 开关
|
||||
VITE_APP_SSE = true
|
||||
|
||||
VITE_BASE_API = "http://47.104.208.94:8089"
|
||||
VITE_BASE_API = "http://47.104.215.165:8080"
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
"ComputedRef": true,
|
||||
"DirectiveBinding": true,
|
||||
"EffectScope": true,
|
||||
"ElLoading": true,
|
||||
"ElMessage": true,
|
||||
"ElMessageBox": true,
|
||||
"ElNotification": true,
|
||||
"ExtractDefaultPropTypes": true,
|
||||
"ExtractPropTypes": true,
|
||||
"ExtractPublicPropTypes": true,
|
||||
|
||||
@@ -25,7 +25,7 @@ export default defineConfig(({ mode, command }) => {
|
||||
proxy: {
|
||||
[env.VITE_APP_BASE_API]: {
|
||||
// target: 'http://47.104.208.94:8089',
|
||||
target: 'http://192.168.0.214:8089',
|
||||
target: 'http://47.104.215.165:8080',
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|
||||
|
||||
Reference in New Issue
Block a user