refactor: rename middleware.ts to proxy.ts per Next.js 16 spec

This commit is contained in:
DanielS
2026-06-30 15:23:57 +02:00
parent 5b7ccfd8d9
commit 19b4ac2729

View File

@@ -1,20 +0,0 @@
import { updateSession } from "@/lib/supabase/proxy";
import { type NextRequest } from "next/server";
export async function middleware(request: NextRequest) {
return await updateSession(request);
}
export const config = {
matcher: [
/*
* Match all request paths except:
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
* - images - .svg, .png, .jpg, .jpeg, .gif, .webp
* Feel free to modify this pattern to include more paths.
*/
"/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)",
],
};