I see this error with the app, reported by NextJS, please fix it. The er
This commit is contained in:
+5
-1
@@ -2,4 +2,8 @@
|
|||||||
import NextAuth from 'next-auth';
|
import NextAuth from 'next-auth';
|
||||||
import { authConfig } from './auth.config';
|
import { authConfig } from './auth.config';
|
||||||
|
|
||||||
export const { handlers, auth, signIn, signOut } = NextAuth(authConfig);
|
export const runtime = "nodejs";
|
||||||
|
|
||||||
|
const { handlers, auth, signIn, signOut } = NextAuth(authConfig);
|
||||||
|
|
||||||
|
export { handlers, auth, signIn, signOut };
|
||||||
|
|||||||
+2
-3
@@ -1,8 +1,7 @@
|
|||||||
|
|
||||||
import NextAuth from 'next-auth';
|
import { auth } from '@/auth';
|
||||||
import { authConfig } from './auth.config';
|
|
||||||
|
|
||||||
export default NextAuth(authConfig).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
|
||||||
|
|||||||
Reference in New Issue
Block a user