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 {