[Auth] URLs reset in non-production branches
Custom Site URL and Redirect URLs reset to localhost:3000 on preview branches, breaking email confirmation links.

Tech tag
Published reports that match this technical term, gathered from the local catalog.
Custom Site URL and Redirect URLs reset to localhost:3000 on preview branches, breaking email confirmation links.
Supabase branching deployment does not reconcile deletions: when a function is removed or disabled in config.toml, the corresponding remote edge function is not deleted, leaving stale functions active on the hosted branch.
Supabase preview branch creation runs the migrate step without --include-all, causing it to fail when the branch's migration tracking table is missing a subset of the parent's migrations (gap). This produces spurious 'Service health check failed' PR comments. Using 'supabase db push --include-all --linked' applies the gap cleanly.
Branch creation returns 201 and a branch record, but provisioning never completes when the source project runs an older Postgres patch version than the latest used for new branches, leaving the branch indefinitely in CREATING_PROJECT/COMING_UP with no surfaced error.
A Supabase branch database fails all password authentication attempts with HTTP 500 and error "Database error querying schema" after the public schema was applied via direct psql. The main branch with identical auth schema and data works correctly. Root cause is likely missing privileges or incorrect ownership on auth schema objects (especially auth.schema_migrations) caused by direct psql operations, breaking GoTrue's startup schema introspection.
Creating a branch on a project with a squashed baseline migration marked as applied on the remote history fails because the baseline's SQL is not executed on the empty branch database; only its ledger entry is written, causing subsequent migrations to fail due to missing schema objects.
When a branching webhook's notify-url targets an Edge Function on a different Supabase project, the webhook sender injects the source project's publishable key into the apikey header. The target project's API gateway rejects the request with 401 UNAUTHORIZED_INVALID_API_KEY before the function executes, breaking cross-project DevOps workflows.
Supabase preview branches created via Management API do not retain GRANT/REVOKE state on public schema objects, causing unintended privilege escalation for anon and authenticated roles, and skip creation of triggers on auth.users, breaking post-signup logic.
11 of 12 branching endpoints document only 500 while API returns 401/403/429; GET /v1/branches/{id}/diff uniquely requires environment:write scope but docs don't explain why, causing generated clients to mishandle auth failures and integrators to request excessive permissions.