mirror of
https://github.com/vercel/next-learn.git
synced 2026-07-02 00:54:19 +00:00
Duplicate starter
This commit is contained in:
9
dashboard/starter-example/middleware.ts
Normal file
9
dashboard/starter-example/middleware.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import NextAuth from 'next-auth';
|
||||
import { authConfig } from './auth.config';
|
||||
|
||||
export default NextAuth(authConfig).auth;
|
||||
|
||||
export const config = {
|
||||
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
|
||||
matcher: ['/((?!api|_next/static|_next/image|.png).*)'],
|
||||
};
|
||||
Reference in New Issue
Block a user