Skip to content

Commit

Permalink
feat: set proxy of backend api (infiniflow#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 authored Feb 29, 2024
1 parent b47e49a commit 7ebb7e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions web/.umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
},
},
});
2 changes: 1 addition & 1 deletion web/src/utils/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let api_host = `http://123.60.95.134:9380/v1`;
let api_host = `/v1`;

export { api_host };

Expand Down

0 comments on commit 7ebb7e8

Please sign in to comment.