fix(old app): correction for dev redirect if on localhost to be proper now
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user