Add hostname configuration option

This commit is contained in:
2025-04-01 22:36:28 +02:00
parent d46e9a3faf
commit fc302d8ef2
3 changed files with 3 additions and 2 deletions

View File

@@ -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(),