SupabaseS
Supabase•12mo ago
TianenPang

Supabase unexpectedly updated the Auth Providers and Site URL when merging to the preview branch

I used branch previews, and every time merge into the preview branch, supabase unexpectedly applies the config.toml settings to supabase project 🤔

Created a preview branch in supabase called canary

First, set up the preview providers in supabase.com/dashboard/project/:pid/auth/providers

Then, configure the preview URL in supabase.com/dashboard/project/:pid/auth/url-configuration

After that, create a pull request with the base branch as canary

Once the PR is merged, the values in supabase.com/dashboard/project/:pid/auth/providers and supabase.com/dashboard/project/:pid/auth/url-configuration will update to whatever is in the config.toml

For example, if I set the URL to preview.mysite.com in supabase.com/dashboard/project/:pid/auth/url-configuration but have [auth] site_url = "http://localhost:3000" in config.toml, after merging the PR, the URL in supabase.com/dashboard/project/:pid/auth/url-configuration will change to http://localhost:3000 🤔
Was this page helpful?