Email templates with Supabase branching + Vercel integration
auth🌲branchingCLI
Currently discovering the Vercel / Supabase integration, which is amazing for deploying live branches of Supabase for every environment or PR.
Overall, the integration is quite powerful but not super documented. It seems that the config.toml file works for configuring all environments, paired with
supabase/env.preview
supabase/env.preview
and
supabase/env.production files
supabase/env.production files
.
I was able to configure SMTP credentials, email templates etc.
Supabase env variables for a branch are properly passed to Vercel for each environment.
But I do not get how you get the Supabase
[auth].site_url
[auth].site_url
config field properly configured per Vercel deployment/branch, which breaks email templates.
Has anyone cracked this? I might be doing something wrong.
TLDR: can't get {{ SiteUrl }} correctly in email templates from Vercel preview deployments.
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.