mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 07:01:07 +03:00
fix(proxy): restrict proxy to exact /api routes only (#3456)
This commit is contained in:
@@ -11,7 +11,7 @@ export default defineConfig(async ({ mode }) => {
|
||||
const serverPort = parseInt(serverEnv?.['PORT'] ?? 3000)
|
||||
if (!Number.isNaN(serverPort) && serverPort > 0 && serverPort < 65535) {
|
||||
proxy = {
|
||||
'/api': {
|
||||
'^/api(/|$).*': {
|
||||
target: `http://${serverHost}:${serverPort}`,
|
||||
changeOrigin: true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user