mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 13:17:45 +00:00
fix: auth broken?
This commit is contained in:
parent
18a49a74e8
commit
7bd84ea454
1 changed files with 1 additions and 0 deletions
|
|
@ -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";
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue