Fix redirects

This commit is contained in:
2025-03-26 20:50:47 +01:00
parent 07a1015a07
commit 9efe20f69f

View File

@@ -179,7 +179,7 @@ const app = new Elysia()
Effect.runPromise,
);
redirect(url, 302);
return redirect(url, 302) as unknown as void;
}, {
response: {
302: t.Void(),
@@ -229,7 +229,7 @@ const app = new Elysia()
.execute();
}
redirect(process.env.NODE_ENV === "production" ? "https://music.renati.me/" : "http://localhost:5173/", 303);
return redirect(process.env.NODE_ENV === "production" ? "https://music.renati.me/" : "http://localhost:5173/", 303) as unknown as void;
}, {
response: {
303: t.Void(),