aboutsummaryrefslogtreecommitdiff
path: root/packages/web/src/middleware.ts
blob: 42925260ff5b93e1bf8dbc5a7d89b2da997f6d69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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)$).*)",
	],
};