-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
42 lines (42 loc) · 1.17 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
// const { defineConfig } = require('@vue/cli-service')
// module.exports = defineConfig({
// devServer: {
// allowedHosts: [
// '23165e1b11.zicp.fun',
// '.zicp.fun'
// ]
// },
// transpileDependencies: true
// })
const { defineConfig } = require('@vue/cli-service')
// module.exports = defineConfig({
// devServer: {
// allowedHosts: [
// '23165e1b11.zicp.fun',
// '.zicp.fun'
// ]
// },
// transpileDependencies: true
// })
module.exports = defineConfig({
publicPath: '/',
devServer: {
allowedHosts: [
'23165e1b11.zicp.fun',
'.zicp.fun'
],
proxy: {
'/api': {
target: 'http://10.223.70.133:8888/', //接口域名
changeOrigin: true, //是否跨域
ws: true, //是否代理 websockets
secure: false, //是否https接口
pathRewrite: { //路径重置
['^' + "/api"]: ''
}
}
}
},
transpileDependencies: true,
lintOnSave: false
});