From cc3657f66fcc07785e786fb16dec9009a8e9a103 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Tue, 28 Oct 2025 07:40:55 -0500 Subject: [PATCH] fix(proxy): changes to allow multiple onsite instances --- app/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/main.ts b/app/main.ts index b93585c..e2d65fd 100644 --- a/app/main.ts +++ b/app/main.ts @@ -86,7 +86,7 @@ const main = async () => { app.use( basePath + "/old", createProxyMiddleware({ - target: `http://localhost:3000`, + target: `http://localhost:${process.env.V1PORT || "3000"}`, // change this to pull from the correct port changeOrigin: true, pathRewrite: (path, req) => { // Remove the basePath + '/old' prefix from the path dynamically @@ -113,7 +113,9 @@ const main = async () => { "http://localhost:4173", "http://localhost:4200", "http://localhost:3000", + "http://localhost:3001", "http://localhost:4000", + "http://localhost:4001", env.BETTER_AUTH_URL, // prod ];