mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-16 15:12:26 +00:00
[feature](chat-sdk) optimize
This commit is contained in:
@@ -1,18 +1,10 @@
|
||||
const { createProxyMiddleware } = require('http-proxy-middleware');
|
||||
|
||||
module.exports = function(app) {
|
||||
// app.use(
|
||||
// '/api',
|
||||
// createProxyMiddleware({
|
||||
// target: 'http://10.91.206.71:9079',
|
||||
// changeOrigin: true,
|
||||
// })
|
||||
// );
|
||||
app.use(
|
||||
'/api',
|
||||
// '/api',
|
||||
createProxyMiddleware({
|
||||
target: 'http://supersonic.test.tmeoa.com',
|
||||
target: 'http://localhost:9080',
|
||||
changeOrigin: true,
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user