refactor(.umirc.ts): change proxy and request in dev mode and production mode

This commit is contained in:
Tran Anh Tuan
2025-11-20 17:10:44 +07:00
parent 216e865ca5
commit 46aaf67a71
8 changed files with 227 additions and 25 deletions

24
config/proxy_dev.ts Normal file
View 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;