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)
This commit is contained in:
balibabu 2024-11-04 11:37:19 +08:00 committed by GitHub
parent 8d9238db14
commit 285fd6ae14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');