Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Add some config to fix deploy error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnguyen982301 committed Jul 21, 2024
1 parent a44f2d1 commit 4984170
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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$).*)'],
};

0 comments on commit 4984170

Please sign in to comment.