All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 42s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
11 lines
485 B
TypeScript
11 lines
485 B
TypeScript
import NextAuth from 'next-auth';
|
|
import { authConfig } from './auth.config';
|
|
|
|
// NOTE: NextAuth middleware API may change in Next.js 16+.
|
|
// See: https://nextjs.org/docs/app/building-your-application/routing/middleware
|
|
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|uploads|.*\\.(?:png|json|svg|ico|jpg|jpeg|webp|woff2?)$).*)'],
|
|
}; |