Files
Momento/memento-note/middleware.ts
Antigravity f044377e7a
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m34s
fix: manifest.json 403 - use Next.js manifest route, remove bak file, update middleware
2026-05-09 17:43:46 +00:00

11 lines
497 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|webmanifest|svg|ico|jpg|jpeg|webp|woff2?)$).*)'],
};