fix: auth broken?

This commit is contained in:
trafficlunar 2026-04-19 23:38:10 +01:00 committed by GitHub
parent 18a49a74e8
commit 7bd84ea454
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,6 +44,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
},
async redirect({ url, baseUrl }) {
if (url.startsWith(baseUrl)) return url;
return process.env.NEXT_PUBLIC_FRONTEND_URL ?? "http://localhost:4321";
},
},