Thrown when a required environment variable is missing or malformed.
Always has status: 500 — environment errors are server-side configuration issues.
status: 500
import { EnvError } from '@supabase/server'try { const client = createAdminClient()} catch (e) { if (e instanceof EnvError) { console.error(`Config issue [${e.code}]: ${e.message}`) // → "Config issue [MISSING_SUPABASE_URL]: SUPABASE_URL is required but not set" }} Copy
import { EnvError } from '@supabase/server'try { const client = createAdminClient()} catch (e) { if (e instanceof EnvError) { console.error(`Config issue [${e.code}]: ${e.message}`) // → "Config issue [MISSING_SUPABASE_URL]: SUPABASE_URL is required but not set" }}
Readonly
Always 500 — environment errors are server-side issues.
500
Machine-readable error code.
EnvGenericError, MissingSupabaseURLError, MissingPublishableKeyError, MissingDefaultPublishableKeyError, MissingSecretKeyError, MissingDefaultSecretKeyError
Thrown when a required environment variable is missing or malformed.
Always has
status: 500— environment errors are server-side configuration issues.Example