You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
299 B
TypeScript
10 lines
299 B
TypeScript
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$).*)'],
|
|
};
|