website/src/content/docs/deploy/supabase.mdx
This guide covers deploying an existing Rivet project to Supabase Edge Functions.
Follow the Supabase Functions Quickstart to set up your project locally.
</Step> <Step title="Set Secrets">Set your Rivet connection values as Supabase secrets. Find RIVET_ENDPOINT and RIVET_PUBLIC_ENDPOINT in the Rivet Dashboard under Settings → Namespace → Advanced → Backend Configuration and copy them in.
npx supabase secrets set \
RIVET_ENDPOINT=https://your-namespace:[email protected] \
RIVET_PUBLIC_ENDPOINT=https://[email protected]
npx supabase functions deploy rivet
After deploy, set the function URL with the /api/rivet path as the serverless runner URL in Rivet. For a function named rivet, this is usually https://your-project.functions.supabase.co/functions/v1/rivet/api/rivet.