Add more stuff. Trying to fix prettier now

This commit is contained in:
2025-05-13 09:28:17 -05:00
parent 0f4db3f451
commit 6b667c2dad
15 changed files with 574 additions and 16 deletions

20
src/middleware.ts Normal file
View File

@ -0,0 +1,20 @@
import { type NextRequest } from "next/server";
import { updateSession } from "@/utils/supabase/middleware";
export const middleware = async (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)$).*)",
],
};