Files
webshop/shop/proxy.ts
DanielS b083f3ac77
Some checks failed
Staging Build / build (push) Has been cancelled
refactor: middleware.ts zu proxy.ts umbenannt gemaess Next.js 16 Spezifikation
2026-06-30 12:41:14 +02:00

21 lines
624 B
TypeScript

import { updateSession } from "@/lib/supabase/proxy";
import { type NextRequest } from "next/server";
export async function proxy(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)$).*)",
],
};