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:51:18 +00:00
parent df5f5b7516
commit 3972548260
2 changed files with 3 additions and 3 deletions
-2
View File
@@ -2,8 +2,6 @@
import NextAuth from 'next-auth'; import NextAuth from 'next-auth';
import { authConfig } from './auth.config'; import { authConfig } from './auth.config';
export const runtime = "nodejs";
const { handlers, auth, signIn, signOut } = NextAuth(authConfig); const { handlers, auth, signIn, signOut } = NextAuth(authConfig);
export { handlers, auth, signIn, signOut }; export { handlers, auth, signIn, signOut };
+3 -1
View File
@@ -1,9 +1,11 @@
import { auth } from '@/auth'; import { auth } from '@/auth';
export default auth; export default auth;
export const config = { export const config = {
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher // https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)'], matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)'],
}; };
export const runtime = "nodejs";