feat: set proxy of backend api (#83)

This commit is contained in:
balibabu 2024-02-29 10:00:45 +08:00 committed by GitHub
parent 320cbf545f
commit a4e038310e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -21,11 +21,11 @@ export default defineConfig({
hack: `true; @import "~@/less/variable.less";`,
},
},
// proxy: {
// '/v1': {
// 'target': 'http://54.80.112.79:9380/',
// 'changeOrigin': true,
// 'pathRewrite': { '^/v1': '/v1' },
// },
// },
proxy: {
'/v1': {
target: 'http://123.60.95.134:9380/',
changeOrigin: true,
// pathRewrite: { '^/v1': '/v1' },
},
},
});

View File

@ -1,4 +1,4 @@
let api_host = `http://123.60.95.134:9380/v1`;
let api_host = `/v1`;
export { api_host };