envs

Supabase — project keys

supabase/project · version 1

envs add supabase/project

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
SUPABASE_URL required config The project URL. Safe in the browser.. Shape ^https://[a-z0-9-]+\.supabase\.co/?$. where to get it
SUPABASE_SECRET_KEY required secret Server only. A bundler that sees this ships it.. Shape ^sb_secret_[A-Za-z0-9_-]{20,}$. Rotate every 180 days. where to get it
SUPABASE_PUBLISHABLE_KEY optional config Safe to expose. Prefix it per your framework when the browser needs it.. Shape ^sb_publishable_[A-Za-z0-9_-]{20,}$. where to get it
SUPABASE_ANON_KEY optional config Legacy JWT publishable key, superseded by SUPABASE_PUBLISHABLE_KEY.. where to get it
SUPABASE_SERVICE_ROLE_KEY optional secret Legacy JWT secret key, superseded by SUPABASE_SECRET_KEY.. Rotate every 180 days. where to get it

The JSON the CLI reads