mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-04 11:24:00 +08:00
### 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:
parent
8d9238db14
commit
285fd6ae14
@ -28,15 +28,16 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
copy: ['src/conf.json'],
|
copy: ['src/conf.json'],
|
||||||
proxy: {
|
proxy: [
|
||||||
'/v1': {
|
{
|
||||||
target: 'http://127.0.0.1:9456/',
|
context: ['/api', '/v1'],
|
||||||
|
target: 'http://127.0.0.1:9380/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
ws: true,
|
ws: true,
|
||||||
logger: console,
|
logger: console,
|
||||||
// pathRewrite: { '^/v1': '/v1' },
|
// pathRewrite: { '^/v1': '/v1' },
|
||||||
},
|
},
|
||||||
},
|
],
|
||||||
chainWebpack(memo, args) {
|
chainWebpack(memo, args) {
|
||||||
memo.module.rule('markdown').test(/\.md$/).type('asset/source');
|
memo.module.rule('markdown').test(/\.md$/).type('asset/source');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user