Configuration
The settings files, and the environment variables of each app.
Settings in code
| File | What |
|---|---|
apps/native/src/config.ts | the drawer, and whether an account is optional or required |
apps/web/src/config.ts | the app's name, the companion switch, themes |
packages/auth/src/config.ts | the sign-in methods the apps offer, onboarding |
packages/payments/src/config.ts | plans, their entitlements, limits, display prices |
supabase/config.toml | the local stack: auth rules, hooks, function settings |
powersync/sync-config.yaml | what each device receives |
Environment variables
Each app declares its variables in .env.schema (varlock); local values
go in the app's .env (git-ignored). Public ones start with EXPO_PUBLIC_ (native) or VITE_
(web, marketing, docs). The defaults point at the local stack.
| App | Main variables |
|---|---|
| native | EXPO_PUBLIC_SUPABASE_URL, EXPO_PUBLIC_SUPABASE_KEY, EXPO_PUBLIC_POWERSYNC_URL, RevenueCat keys, Google client ids |
| web | VITE_SUPABASE_URL, VITE_SUPABASE_KEY |
| marketing | VITE_SITE_URL, store URLs, the Apple team id and Android certificate fingerprints for app links |
The Edge Functions read their settings from the Edge Runtime's environment
(packages/functions/src/env.ts); locally they come from [edge_runtime.secrets] in
supabase/config.toml, and secrets such as REVENUECAT_SECRET_KEY from supabase/.env.