Add hostname configuration option
This commit is contained in:
@@ -230,7 +230,7 @@ const app = new Elysia()
|
||||
.execute();
|
||||
}
|
||||
|
||||
return redirect(config.NODE_ENV === "production" ? "https://music.renati.me/" : "http://localhost:5173/", 303) as unknown as void;
|
||||
return redirect(config.NODE_ENV === "production" ? `https://${config.HOSTNAME}/` : "http://localhost:5173/", 303) as unknown as void;
|
||||
}, {
|
||||
response: {
|
||||
303: t.Void(),
|
||||
|
||||
Reference in New Issue
Block a user