Browse Source

代码分离

cz 1 year ago
parent
commit
e7c6c5c933
4 changed files with 5 additions and 8 deletions
  1. 1 1
      .env.development
  2. 1 1
      .env.production
  3. 1 1
      .env.staging
  4. 2 5
      vite.config.js

+ 1 - 1
.env.development

@@ -9,4 +9,4 @@ VITE_APP_BASE_API = '/dev-api'
 
 VITE_APP_WS_API = ':20001/test-api'
 
-VITE_APP_IP = '121.37.194.75'
+VITE_APP_IP = '139.9.102.170'

+ 1 - 1
.env.production

@@ -9,7 +9,7 @@ VITE_APP_BASE_API = '/prod-api'
 
 VITE_APP_WS_API = ':9898/prod-api'
 
-VITE_APP_IP = '139.159.251.109'
+VITE_APP_IP = '139.9.102.170'
 
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip

+ 1 - 1
.env.staging

@@ -12,4 +12,4 @@ VITE_APP_WS_API = ':20001/test-api'
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip
 
-VITE_APP_IP = '121.37.194.75'
+VITE_APP_IP = '139.9.102.170'

+ 2 - 5
vite.config.js

@@ -39,16 +39,13 @@ export default defineConfig(({
       proxy: {
         // https://cn.vitejs.dev/config/#server-proxy
         '/dev-api': {
-          target: 'http://121.37.194.75:20006/test-api',
-          // 正式地址
-          // target:"http://139.159.251.109/prod-api",
+          target: ' http://139.9.102.170:10020/test-api',
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')
         },
         '/byteSailing': {
-          target: 'https://os.winfaster.cn/byteSailing',
           // 正式地址
-          // target:"http://139.159.251.109/prod-api",
+          // target:" http://139.9.102.170:10021/prod-api",
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/byteSailing/, '')
         }