mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-14 09:16:54 +00:00
fix: upgrade to nextjs 16 (#888)
* Upgrade to nextjs 16 * Update sentry config * Force dynamic for health route * Upgrade eslint config * Upgrade jest * Move types to dev dependencies * Remove pages from tailwind config * Replace img with next image
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import NextAuth from "next-auth";
|
||||
import { authOptions } from "../../../lib/authBackend";
|
||||
|
||||
const handler = NextAuth(authOptions());
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export { handler as GET, handler as POST };
|
||||
// authOptions() is deferred to request time to avoid calling getNextEnvVar
|
||||
// during Turbopack's build-phase module evaluation (Next.js 16+)
|
||||
export function GET(req: Request, ctx: any) {
|
||||
return NextAuth(authOptions())(req as any, ctx);
|
||||
}
|
||||
|
||||
export function POST(req: Request, ctx: any) {
|
||||
return NextAuth(authOptions())(req as any, ctx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user