/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
examples/with-supabase/proxy.ts
20 строк
624 B
Jon Meyers
Chore: Update with-supabase example to Next.js 16 (#86105)
18 ноя 2025, 09:41
Не верифицирован
18 ноя 2025, 09:41
fc4f062
Код
Авторство
О чём код?
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)$).*)", ], };