Health-check endpoint for the Niche app.
GET /api/health
Pings the Supabase auth service and reports whether the app can reach it. Useful after npx supabase start and as a deployment liveness probe.
npx supabase start
Response — 200 OK (both services reachable):
{ "app": "ok", "supabase": "ok" } Copy
{ "app": "ok", "supabase": "ok" }
Response — 503 Service Unavailable (Supabase unreachable or error):
{ "app": "ok", "supabase": "unreachable (is `npx supabase start` running?)" } Copy
{ "app": "ok", "supabase": "unreachable (is `npx supabase start` running?)" }
Description
Health-check endpoint for the Niche app.
GET /api/healthPings the Supabase auth service and reports whether the app can reach it. Useful after
npx supabase startand as a deployment liveness probe.Response — 200 OK (both services reachable):
Response — 503 Service Unavailable (Supabase unreachable or error):