|
@@ -1,22 +1,40 @@
|
|
|
const isH5 = process.env.CLIENT_ENV === 'h5'
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+const HOST = '"http://zhcq-m.jishutao.com/gw"'
|
|
|
+const HOST_M = '"http://zhcq-m.jishutao.com/gw"'
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+const HOST_H5 = '"http://zhcq-m.jishutao.com/gw"'
|
|
|
+const HOST_M_H5 = '"http://zhcq-m.jishutao.com/gw"'
|
|
|
|
|
|
module.exports = {
|
|
|
env: {
|
|
|
NODE_ENV: '"production"'
|
|
|
},
|
|
|
defineConstants: {
|
|
|
-
|
|
|
-
|
|
|
+ HOST: isH5 ? HOST_H5 : HOST,
|
|
|
+ HOST_M: isH5 ? HOST_M_H5 : HOST_M
|
|
|
},
|
|
|
weapp: {},
|
|
|
h5: {
|
|
|
+ devServer: {
|
|
|
+ proxy: {
|
|
|
+ '/gw/': {
|
|
|
+ target: JSON.parse(HOST),
|
|
|
+ pathRewrite: {
|
|
|
+ '^/gw/': '/'
|
|
|
+ },
|
|
|
+ changeOrigin: true
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|