refactor(.umirc.ts): change proxy and request in dev mode and production mode
This commit is contained in:
24
config/proxy_dev.ts
Normal file
24
config/proxy_dev.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
const proxyDev: Record<string, any> = {
|
||||
dev: {
|
||||
'/api': {
|
||||
target: 'http://192.168.30.103:81',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
test: {
|
||||
'/test': {
|
||||
target: 'https://test-sgw-device.gms.vn',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
},
|
||||
prod: {
|
||||
'/test': {
|
||||
target: 'https://prod-sgw-device.gms.vn',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default proxyDev;
|
||||
Reference in New Issue
Block a user