|
@@ -1,6 +1,7 @@
|
|
|
const path = require('path');
|
|
|
const frame = path.resolve(__dirname, '../frame');
|
|
|
const center = path.resolve(__dirname, '../train-center');
|
|
|
+const ip = 'http://127.0.0.1';
|
|
|
module.exports = {
|
|
|
publicPath: process.env.NODE_ENV === 'development' ? '/' : '/school',
|
|
|
outputDir: 'school',
|
|
@@ -24,40 +25,36 @@ module.exports = {
|
|
|
port: '8005',
|
|
|
|
|
|
proxy: {
|
|
|
- '/api': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
+ '/api/train': {
|
|
|
+ target: ip,
|
|
|
changeOrigin: true,
|
|
|
ws: true,
|
|
|
},
|
|
|
+ '/api/auth': {
|
|
|
+ target: ip,
|
|
|
+ changeOrigin: true,
|
|
|
+ ws: true,
|
|
|
+ },
|
|
|
+ '/api/mission': {
|
|
|
+ target: ip,
|
|
|
+ changeOrigin: true,
|
|
|
+ ws: true,
|
|
|
+ },
|
|
|
+
|
|
|
'/files': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
+ target: 'http://jytz.jilinjobs.cn',
|
|
|
changeOrigin: true,
|
|
|
ws: true,
|
|
|
},
|
|
|
'/ws': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
+ target: 'http://jytz.jilinjobs.cn',
|
|
|
ws: true,
|
|
|
},
|
|
|
'/weixin': {
|
|
|
- target: 'http://smart.cc-lotus.info',
|
|
|
+ target: 'http://jytz.jilinjobs.cn',
|
|
|
changeOrigin: true,
|
|
|
ws: true,
|
|
|
},
|
|
|
- '/admin/center': {
|
|
|
- target: 'http://localhost:8001',
|
|
|
- },
|
|
|
- '/admin/director': {
|
|
|
- target: 'http://localhost:8002',
|
|
|
- },
|
|
|
- '/admin/teacher': {
|
|
|
- target: 'http://localhost:8003',
|
|
|
- },
|
|
|
- '/admin/student': {
|
|
|
- target: 'http://localhost:8004',
|
|
|
- },
|
|
|
- '/admin/school': {
|
|
|
- target: 'http://localhost:8005',
|
|
|
- },
|
|
|
},
|
|
|
},
|
|
|
};
|