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 { authConfig } from './auth.config';
|
||||
|
||||
export const runtime = "nodejs";
|
||||
|
||||
const { handlers, auth, signIn, signOut } = NextAuth(authConfig);
|
||||
|
||||
export { handlers, auth, signIn, signOut };
|
||||
|
||||
+3
-1
@@ -1,9 +1,11 @@
|
||||
|
||||
import { auth } from '@/auth';
|
||||
|
||||
|
||||
export default auth;
|
||||
|
||||
export const config = {
|
||||
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
|
||||
matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)'],
|
||||
};
|
||||
|
||||
export const runtime = "nodejs";
|
||||
|
||||
Reference in New Issue
Block a user