balibabu
commited on
Commit
·
09d54d8
1
Parent(s):
8130a85
feat: Proxy the SDK address to the backend #3166 (#3171)
Browse files### What problem does this PR solve?
feat: Proxy the SDK address to the backend #3166
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
- web/.umirc.ts +5 -4
web/.umirc.ts
CHANGED
@@ -28,15 +28,16 @@ export default defineConfig({
|
|
28 |
},
|
29 |
devtool: 'source-map',
|
30 |
copy: ['src/conf.json'],
|
31 |
-
proxy:
|
32 |
-
|
33 |
-
|
|
|
34 |
changeOrigin: true,
|
35 |
ws: true,
|
36 |
logger: console,
|
37 |
// pathRewrite: { '^/v1': '/v1' },
|
38 |
},
|
39 |
-
|
40 |
chainWebpack(memo, args) {
|
41 |
memo.module.rule('markdown').test(/\.md$/).type('asset/source');
|
42 |
|
|
|
28 |
},
|
29 |
devtool: 'source-map',
|
30 |
copy: ['src/conf.json'],
|
31 |
+
proxy: [
|
32 |
+
{
|
33 |
+
context: ['/api', '/v1'],
|
34 |
+
target: 'http://127.0.0.1:9380/',
|
35 |
changeOrigin: true,
|
36 |
ws: true,
|
37 |
logger: console,
|
38 |
// pathRewrite: { '^/v1': '/v1' },
|
39 |
},
|
40 |
+
],
|
41 |
chainWebpack(memo, args) {
|
42 |
memo.module.rule('markdown').test(/\.md$/).type('asset/source');
|
43 |
|