Some checks failed
Deploy to Cloudflare Workers / deploy (push) Has been cancelled
13 lines
353 B
TypeScript
13 lines
353 B
TypeScript
import { type NextRequest } from "next/server";
|
|
import { updateSession } from "@/lib/supabase/middleware";
|
|
|
|
export async function middleware(request: NextRequest) {
|
|
return await updateSession(request);
|
|
}
|
|
|
|
export const config = {
|
|
matcher: [
|
|
"/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)",
|
|
],
|
|
};
|