Creates a custom domain record for an SGTM container and returns DNS configuration instructions.
This Edge Function provisions a new custom domain for a container by creating a database record and generating CNAME DNS instructions for the user to configure at their domain registrar.
POST /functions/v1/create_custom_domain
Service role (internal) - uses SUPABASE_SERVICE_ROLE_KEY.
SUPABASE_SERVICE_ROLE_KEY
sgtm_container_id
host
client_id
edge_hostname
sgtm_containers
custom_domains
Creates a custom domain record for an SGTM container and returns DNS configuration instructions.
Overview
This Edge Function provisions a new custom domain for a container by creating a database record and generating CNAME DNS instructions for the user to configure at their domain registrar.
Endpoint
POST /functions/v1/create_custom_domainAuthentication
Service role (internal) - uses
SUPABASE_SERVICE_ROLE_KEY.Behavior
sgtm_container_id,host,client_id)edge_hostnamefrom databaseTables Touched
sgtm_containers(read)custom_domains(write)Notes