mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-16 15:12:26 +00:00
(feature)(webapp) modify chat sdk setupProxy config (#223)
This commit is contained in:
@@ -1,18 +1,17 @@
|
||||
const { createProxyMiddleware } = require('http-proxy-middleware');
|
||||
const { proxyTarget } = require('./common/env');
|
||||
|
||||
module.exports = function(app) {
|
||||
app.use(
|
||||
'/api',
|
||||
createProxyMiddleware({
|
||||
target: proxyTarget,
|
||||
target: 'http://localhost:9080',
|
||||
changeOrigin: true,
|
||||
})
|
||||
);
|
||||
app.use(
|
||||
'/openapi',
|
||||
createProxyMiddleware({
|
||||
target: proxyTarget,
|
||||
target: 'http://localhost:9080',
|
||||
changeOrigin: true,
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user