Skip to main content
Secrets are environment variables for your app. Naive stores them encrypted and syncs them to the app’s hosting environment: production maps to the production environment; preview maps to the preview + development environments. Redeploy after changes for them to take effect. These are provisioned automatically and shouldn’t be set manually:
  • NEXT_PUBLIC_APP_URL — all apps
  • NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY — fullstack apps

List Secrets

Values are never returned in list responses — use the reveal endpoint for individual values.

Set Secret

Creates the variable, or updates it in place if the key already exists for that target (upserted on the hosting environment as well):

Request Body

Response

200

Reveal Secret

Returns the decrypted value:
200
404

Delete Secret

Removes the variable from Naive and from the hosting environment:
200

Errors

400