-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathproxy.conf.js
26 lines (26 loc) · 879 Bytes
/
proxy.conf.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
/**
* For more configuration, please refer to https://angular.io/guide/build#proxying-to-a-backend-server
*
* 更多配置描述请参考 https://angular.cn/guide/build#proxying-to-a-backend-server
*
* Note: The proxy is only valid for real requests, Mock does not actually generate requests, so the priority of Mock will be higher than the proxy
*/
module.exports = {
/**
* The following means that all requests are directed to the backend `https://localhost:9000/`
*/
'/': {
target: 'http://localhost:9999',
secure: false, // SSL certificates
changeOrigin: true,
// target: 'https://www.erupt.xyz/demo',
// secure: true, // SSL certificates
// changeOrigin: true
},
"/erupt": {
target: 'http://localhost:9999',
secure: false,
changeOrigin: true,
ws: true,
}
};