I see this error with the app, reported by NextJS, please fix it. The er
This commit is contained in:
@@ -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 };
|
||||||
|
|||||||
@@ -7,3 +7,5 @@ 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";
|
||||||
|
|||||||
Reference in New Issue
Block a user