0
0
Supabasecloud~10 mins

Custom domains in Supabase - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Custom domains
User owns domain
Add domain to Supabase project
Supabase provides DNS records
User updates DNS provider with records
DNS propagates changes
Supabase verifies domain
Domain active
The user adds their domain to Supabase, updates DNS records as instructed, then Supabase verifies the domain to activate it.
Execution Sample
Supabase
1. Add domain example.com in Supabase
2. Supabase shows DNS records
3. Update DNS provider with records
4. Wait for DNS propagation
5. Supabase verifies domain
6. Domain becomes active
This sequence shows how a user sets up a custom domain in Supabase step-by-step.
Process Table
StepActionInput/ConditionResultNext Step
1User adds domainDomain = example.comSupabase accepts domainSupabase shows DNS records
2Supabase provides DNS recordsRecords for example.comUser sees records to addUser updates DNS provider
3User updates DNSAdds records to DNS providerDNS records setWait for DNS propagation
4Wait for DNS propagationDNS changes propagatePropagation in progressSupabase verifies domain
5Supabase verifies domainChecks DNS recordsRecords correct?Yes -> Domain active; No -> Wait or fix DNS
6Domain statusVerifiedDomain active and servingEnd
7Domain statusNot verifiedDomain inactiveUser fixes DNS and retries
💡 Domain becomes active when DNS records are verified by Supabase.
Status Tracker
VariableStartAfter Step 1After Step 3After Step 5Final
domainnoneexample.comexample.comexample.comexample.com
dns_records_setfalsefalsetruetruetrue
dns_verifiedfalsefalsefalsetrue/falsetrue (active) or false (inactive)
domain_statusnonependingpendingverified or notactive or inactive
Key Moments - 3 Insights
Why does the domain stay inactive after adding DNS records?
Because DNS propagation takes time; Supabase verification (step 5) only succeeds after propagation completes, as shown in execution_table row 4 and 5.
What happens if DNS records are incorrect?
Supabase verification fails (execution_table row 7), so the domain remains inactive until DNS records are fixed.
Why must the user update DNS records at their DNS provider?
Supabase cannot change DNS records itself; the user must add the provided records to their DNS provider for verification and activation (execution_table row 3).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, at which step does Supabase check if DNS records are correct?
AStep 5
BStep 4
CStep 2
DStep 3
💡 Hint
Check the 'Action' and 'Result' columns in execution_table row 5.
According to variable_tracker, what is the value of 'dns_records_set' after Step 3?
Afalse
Bnone
Ctrue
Dpending
💡 Hint
Look at the 'dns_records_set' row under 'After Step 3' in variable_tracker.
If DNS propagation is not complete, what will be the domain status according to execution_table?
Aactive
Bpending
Cinactive
Dverified
💡 Hint
Refer to execution_table row 4 and the 'domain_status' variable in variable_tracker.
Concept Snapshot
Custom domains in Supabase:
1. Add your domain in Supabase project.
2. Supabase gives DNS records to add at your DNS provider.
3. Update DNS records and wait for propagation.
4. Supabase verifies DNS records.
5. Once verified, domain becomes active.
Full Transcript
To use a custom domain with Supabase, you first add your domain name in the Supabase project settings. Supabase then provides specific DNS records that you must add at your domain's DNS provider. After updating these DNS records, you wait for the changes to propagate across the internet. Supabase periodically checks these DNS records to verify ownership and correctness. When verification succeeds, your custom domain becomes active and serves your Supabase project. If verification fails, you need to check and fix your DNS records. This process ensures your domain is properly linked and secure.