fix(old app): correction for dev redirect if on localhost to be proper now

This commit is contained in:
2025-10-26 09:37:37 -05:00
parent 0fd777ccbd
commit 70a2ff5e84

View File

@@ -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 {