From 498417017b6f1f790e92520ffb649ee2f6c8305b Mon Sep 17 00:00:00 2001 From: danielnguyen982301 Date: Sun, 21 Jul 2024 17:33:22 +0700 Subject: [PATCH] Add some config to fix deploy error --- middleware.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/middleware.ts b/middleware.ts index 03cb103..eba5f05 100644 --- a/middleware.ts +++ b/middleware.ts @@ -4,6 +4,8 @@ import { authConfig } from './auth.config'; export default NextAuth(authConfig).auth; export const config = { + runtime: 'experimental-edge', + unstable_allowDynamic: ['**/node_modules/lodash/_root.js'], // https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)'], };