fix:deploy

This commit is contained in:
2026-03-10 02:31:21 +09:00
parent b1c45b9e8a
commit 0334fb43c9
3 changed files with 48 additions and 13 deletions

View File

@@ -80,7 +80,8 @@ export const authRouter: FastifyPluginAsync = async (fastify) => {
req.session.user = user;
const base = process.env.FRONTEND_APP_URL ?? "http://localhost:5173";
reply.redirect(`${base}?login=1`);
const baseUrl = base.endsWith("/") ? base : `${base}/`;
reply.redirect(`${baseUrl}?login=1`);
},
);