Browse Source

mod:改成线上模式

panqiuyao 6 months ago
parent
commit
b6ed9ea08f
3 changed files with 3 additions and 3 deletions
  1. 1 1
      frontend/.env.development
  2. 1 1
      frontend/.env.production
  3. 1 1
      frontend/vite.config.ts

+ 1 - 1
frontend/.env.development

@@ -1,2 +1,2 @@
 NODE_ENV=development
-API_HOST = http://dev2.pubdata.cn
+API_HOST = http://dev2.valimart.net

+ 1 - 1
frontend/.env.production

@@ -1,3 +1,3 @@
 NODE_ENV=production
-API_HOST = http://dev2.pubdata.cn
+API_HOST = http://dev2.valimart.net
 

+ 1 - 1
frontend/vite.config.ts

@@ -61,7 +61,7 @@ export default ({mode, command})=> {
         // 当请求以'/api'开头时,将其代理到目标服务器
         '/api': {
           // 目标服务器的地址
-          target: 'http://dev2.pubdata.cn',
+          target: 'https://dev2.valimart.net',
           // 允许更改目标服务器的来源
           changeOrigin: true
         },