Browse Source

feat():修改开发配置

geek 4 years ago
parent
commit
2289fed812
3 changed files with 2 additions and 6 deletions
  1. 1 1
      .env.production
  2. 1 1
      .env.staging
  3. 0 4
      vue.config.js

+ 1 - 1
.env.production

@@ -2,5 +2,5 @@
 ENV = 'production'
 
 # base api
-VUE_APP_BASE_API = '/prod-api'
+VUE_APP_BASE_API = '/api'
 

+ 1 - 1
.env.staging

@@ -4,5 +4,5 @@ NODE_ENV = production
 ENV = 'staging'
 
 # base api
-VUE_APP_BASE_API = '/stage-api'
+VUE_APP_BASE_API = '/api'
 

+ 0 - 4
vue.config.js

@@ -37,16 +37,12 @@ module.exports = {
       errors: true
     },
     before: require('./mock/mock-server.js'),
-    // proxy: 'https://xcx.joojtech.com/'
     proxy: {
       '/api': {
         target: 'http://llz-tp.com/',
         ws: true,
         changeOrigin: true,
         secure: true
-      },
-      '/foo': {
-        target: 'http://soa2.joojtech.com/'
       }
     }