Deploy
Edge functions are not deployed by EAS. You push them to Supabase with the Supabase CLI, separately from your app build.
Prerequisites
Complete the Supabase project setup and set your function secrets.
Link your project
supabase link --project-ref <your-project-ref>Your project ref is in the Supabase dashboard URL: https://supabase.com/dashboard/project/<project-ref>.
Push the database migrations
The AI features need the threads, messages, generations and scans tables,
the chat-media storage bucket, and count_monthly_usage. The initial migration
in supabase/migrations/ creates them.
yarn supabase:db-push-remoteDeploy the functions
Deploy all of them at once:
supabase functions deployOr one at a time while iterating:
supabase functions deploy chat
supabase functions deploy generate
supabase functions deploy identify
supabase functions deploy delete-accountVerify
supabase functions listConfirm that all four functions are listed. Open the app, sign in and send a chat message. The reply should stream back and remain in the thread after reopening it.
If the request fails, open the function’s Logs tab in the Supabase Dashboard. See function logging .
supabase functions deploy includes the shared helpers imported from _utils/.
When to redeploy
Redeploy after changing function code or a shared file such as ai.config.json.
Changes to hosted secrets take effect without a redeploy. See Supabase’s
environment variables guide .