I see this error with the app, reported by NextJS, please fix it. The er

This commit is contained in:
Leon Serfaty G
2025-09-01 06:54:08 +00:00
parent ad0543a9a1
commit ea6c6f3514
3 changed files with 11 additions and 12 deletions
+5 -5
View File
@@ -1,8 +1,8 @@
import NextAuth from 'next-auth';
import { authConfig } from '@/auth.config';
import { handlers, auth, signIn, signOut } from '@/auth';
export const { handlers, auth, signIn, signOut } = NextAuth(authConfig);
export const { GET, POST } = handlers;
export const GET = handlers.GET;
export const POST = handlers.POST;
export { auth, signIn, signOut };
export const runtime = "nodejs";
+2 -2
View File
@@ -2,6 +2,6 @@
import NextAuth from 'next-auth';
import { authConfig } from './auth.config';
const { handlers, auth, signIn, signOut } = NextAuth(authConfig);
export const { handlers, auth, signIn, signOut } = NextAuth(authConfig);
export { handlers, auth, signIn, signOut };
export const runtime = "nodejs";
+3 -4
View File
@@ -1,9 +1,8 @@
import { auth } from '@/auth';
import NextAuth from 'next-auth';
import { authConfig } from '@/auth.config';
export default auth;
export const runtime = 'nodejs';
export default NextAuth(authConfig).auth;
export const config = {
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher