mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
* chore: prep expo example. * Modify Flutter user management example to use .env and initialize supabase * chore: add .env support to swift-user-management * chore: update supabase dependency for swift-user-management example * chore: minor expo updates. * chore: update auth nextjs example. --------- Co-authored-by: dshukertjr <dshukertjr@gmail.com> Co-authored-by: Guilherme Souza <grsouza@pm.me>
21 lines
636 B
TypeScript
21 lines
636 B
TypeScript
import { type NextRequest } from "next/server";
|
|
import { updateSession } from "@/utils/supabase/middleware";
|
|
|
|
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)$).*)",
|
|
],
|
|
};
|