Deployment
Other platforms
Supabase Cloud, PowerSync Cloud, and hosting the web apps elsewhere.
The default is one self-hosted host. The pieces can move independently.
Supabase Cloud
The same repository works with a hosted project:
supabase link --project-ref <ref>
supabase db push # the migrations
bun run functions:build
supabase functions deploy # the bundles in supabase/functions
supabase secrets set --env-file deploy/supabase/functions.env- Turn on the custom access token hook and the send-email hook in the dashboard.
- Add the asymmetric signing key.
- Add the redirect URLs: the web app and the app's scheme.
- Set the Vault entries the scheduled work reads (
functions_url,cron_secret).
PowerSync Cloud
Point a PowerSync Cloud instance at the database with client_auth: supabase: true. Paste
powersync/sync-config.yaml as its sync config, and set EXPO_PUBLIC_POWERSYNC_URL in the app
to the instance's URL.
The web apps elsewhere
The web app, the marketing site and the docs are plain Node servers (TanStack Start with
nitro). They run anywhere a Docker image runs. They also run on Vercel or Netlify: switch their
nitro preset in vite.config.ts and build with the app's folder as the root. They only need the
public Supabase URL and publishable key.