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