0
0
Supabasecloud~10 mins

Custom domains in Supabase - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add a custom domain to your Supabase project.

Supabase
supabase.project.addDomain('[1]')
Drag options to blanks, or click blank then click option'
Aexample.com
Bmyproject
C12345
Dapi.supabase.io
Attempts:
3 left
💡 Hint
Common Mistakes
Using project ID instead of domain name
Using API endpoint instead of domain name
2fill in blank
medium

Complete the code to verify your custom domain ownership in Supabase.

Supabase
await supabase.project.verifyDomain('[1]')
Drag options to blanks, or click blank then click option'
A12345
Bexample.com
Capi.supabase.io
Dmyproject
Attempts:
3 left
💡 Hint
Common Mistakes
Using project ID instead of domain name
Using API endpoint instead of domain name
3fill in blank
hard

Fix the error in the code to correctly configure SSL for your custom domain.

Supabase
supabase.project.configureSSL({ ssl: [1] })
Drag options to blanks, or click blank then click option'
Assl
Bfalse
Cenable
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Passing string 'enable' instead of boolean
Passing string 'ssl' instead of boolean
4fill in blank
hard

Fill both blanks to create a DNS TXT record for domain verification.

Supabase
dnsRecords.create({ type: '[1]', value: '[2]' })
Drag options to blanks, or click blank then click option'
ATXT
BCNAME
Csupabase-verification-token
DA
Attempts:
3 left
💡 Hint
Common Mistakes
Using CNAME instead of TXT record
Using incorrect token value
5fill in blank
hard

Fill all three blanks to update the custom domain settings with SSL and redirect enabled.

Supabase
supabase.project.updateDomain('[1]', { ssl: [2], redirectToHttps: [3] })
Drag options to blanks, or click blank then click option'
Aexample.com
Btrue
Cfalse
Dmyproject
Attempts:
3 left
💡 Hint
Common Mistakes
Using project ID instead of domain name
Setting SSL or redirectToHttps to false