Docs/Getting Started/Environment Variables & Configuration
3 min readv1.0.68

Environment Variables & Configuration

Configure the independent native and web clients safely.

Web Configuration#

Use the web app's environment example and deployment configuration. Public client configuration includes NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY. Keep service-role, provider, and signing credentials server-side.

Android Configuration#

Set SUPABASE_URL and SUPABASE_KEY in ignored laterbox-android/local.properties. Preserve Android Studio's local SDK configuration in that file.

Apple Configuration#

Use the native Apple project's configuration and CI signing guide. Configure bundle identifiers, App Groups, entitlements, and App Store signing for the actual build target.

Extensions and Backend#

Extension build scripts select hosted or local capture and approval origins. Supabase functions use their own environment configuration. Never publish privileged keys in client apps.

Questions or suggestions for this documentation?