Spaces:
Sleeping
Sleeping
Download src/proxy.ts from ashnhash/UniHunt: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/ashnhash/UniHunt/resolve/main/src/proxy.ts
- Command line
-
hf download hf://spaces/ashnhash/UniHunt/src/proxy.ts
-
curl -L -o proxy.ts https://huggingface.co/spaces/ashnhash/UniHunt/resolve/main/src/proxy.ts
325 Bytes
| import { type NextRequest } from "next/server"; | |
| import { updateSession } from "@/lib/supabase/proxy"; | |
| export async function proxy(request: NextRequest) { | |
| return updateSession(request); | |
| } | |
| export const config = { | |
| matcher: [ | |
| "/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)", | |
| ], | |
| }; | |