From 70a2ff5e845d9a8c460f4810f8de741fae32ad96 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Sun, 26 Oct 2025 09:37:37 -0500 Subject: [PATCH] fix(old app): correction for dev redirect if on localhost to be proper now --- lstV2/server/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lstV2/server/index.ts b/lstV2/server/index.ts index 37d6912..2cd72fe 100644 --- a/lstV2/server/index.ts +++ b/lstV2/server/index.ts @@ -163,7 +163,10 @@ app.all("*", (c) => { const server = serverIntialized.filter((n: any) => n.name === "plantToken"); let url = ""; - if (testServers.includes(server[0].value)) { + + if (c.req.url.includes("localhost")) { + url = `http://localhost:5500/lst/app/old${c.req.path}`; + } else if (testServers.includes(server[0].value)) { const dbServer = serverIntialized.filter((n: any) => n.name === "dbServer"); url = `https://${dbServer[0].value}.alpla.net/lst/app/old${c.req.path}`; } else {