forked from housepower/ckman-fe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
31 lines (29 loc) · 829 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
const commonConfig = require('./src/common/configureWebpack');
module.exports = {
...commonConfig,
devServer: {
proxy: {
'/api/login': {
target: 'http://192.168.101.94:8808',
logLevel: 'debug',
// pathRewrite: { '^/api/login': '/api/login' },
changeOrigin: true,
secure: false,
onProxyRes(proxyRes) {
proxyRes.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate';
},
},
'/api/v1': {
target: 'http://192.168.101.94:8808',
logLevel: 'debug',
// pathRewrite: { '^/api/v1': '/api/v1' },
changeOrigin: true,
secure: false,
onProxyRes(proxyRes) {
proxyRes.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate';
},
},
},
},
};