Add developer API, Prometheus metrics, and community links

This commit is contained in:
2026-10-12 19:59:37 +05:00
parent 3cc3136762
commit 018be5049e
50 changed files with 4087 additions and 31 deletions

View File

@@ -11,6 +11,12 @@ export async function proxy(request: NextRequest) {
return NextResponse.redirect(destination);
}
let response = NextResponse.next({ request });
// Developer requests authenticate with their own opaque key, never browser cookies.
if (
request.nextUrl.pathname.startsWith("/api/dev/v1/") ||
request.nextUrl.pathname === "/api/dev/openapi.json"
)
return response;
if (!process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY) return response;
const client = createServerClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,