21 lines
591 B
TypeScript
21 lines
591 B
TypeScript
import { NextResponse } from "next/server"
|
|
import type { NextRequest } from "next/server"
|
|
import NextAuth from "next-auth"
|
|
import { authConfig } from "./auth.config"
|
|
|
|
export default NextAuth(authConfig).auth
|
|
|
|
export function middleware(request: NextRequest) {}
|
|
|
|
export const config = {
|
|
matcher: [
|
|
/*
|
|
* Match all request paths except for the ones starting with:
|
|
* - api (API routes)
|
|
* - _next/static (static files)
|
|
* - _next/image (image optimization files)
|
|
* - favicon.ico (favicon file)
|
|
*/
|
|
"/((?!api|_next/static|_next/image|favicon.ico).*)",
|
|
],
|
|
}
|