dev01 1 year ago
parent
commit
fd00a86b49
1 changed files with 6 additions and 6 deletions
  1. 6 6
      config/prod.js

+ 6 - 6
config/prod.js

@@ -1,11 +1,11 @@
 const isH5 = process.env.CLIENT_ENV === 'h5'
 
-const HOST = '"http://zhcq-m.jishutao.com/prod-api"'
-const HOST_M = '"http://zhcq-m.jishutao.com/prod-api"'
+const HOST = '"http://zhcq-m.jishutao.com/gw"'
+const HOST_M = '"http://zhcq-m.jishutao.com/gw"'
 
 // XXX 搭了个 proxy 用于演示 prod 环境的 H5
-const HOST_H5 = '"http://zhcq-m.jishutao.com/prod-api"'
-const HOST_M_H5 = '"http://zhcq-m.jishutao.com/prod-api"'
+const HOST_H5 = '"http://zhcq-m.jishutao.com/gw"'
+const HOST_M_H5 = '"http://zhcq-m.jishutao.com/gw"'
 
 module.exports = {
   env: {
@@ -19,10 +19,10 @@ module.exports = {
   h5: {
     devServer: {
       proxy: {
-        '/prod-api/': {
+        '/gw/': {
           target: JSON.parse(HOST),
           pathRewrite: {
-            '^/prod-api/': '/'
+            '^/gw/': '/'
           },
           changeOrigin: true
         },