瀏覽代碼

feat: Proxy the SDK address to the backend #3166 (#3171)

### 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)
tags/v0.14.0
balibabu 1 年之前
父節點
當前提交
285fd6ae14
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 5 行新增4 行删除
  1. 5
    4
      web/.umirc.ts

+ 5
- 4
web/.umirc.ts 查看文件

@@ -28,15 +28,16 @@ export default defineConfig({
},
devtool: 'source-map',
copy: ['src/conf.json'],
proxy: {
'/v1': {
target: 'http://127.0.0.1:9456/',
proxy: [
{
context: ['/api', '/v1'],
target: 'http://127.0.0.1:9380/',
changeOrigin: true,
ws: true,
logger: console,
// pathRewrite: { '^/v1': '/v1' },
},
},
],
chainWebpack(memo, args) {
memo.module.rule('markdown').test(/\.md$/).type('asset/source');


Loading…
取消
儲存