Functions

activate-custom-hostname

fn (project-ref: Str): Map
fn (project-ref: Str, opts: Map): Map

Activate a verified custom hostname. DNS must be verified first.

Example

::domains ::supabase::admin::domains

result ::domains/activate-custom-hostname("my-project-ref")
result.status

activate-vanity-subdomain

fn (request: ActivateVanitySubdomainRequest): Map
fn (request: ActivateVanitySubdomainRequest, opts: Map): Map

Activate a vanity subdomain for a project (e.g. myapp.supabase.co).

Example

::domains ::supabase::admin::domains

result ::domains/activate-vanity-subdomain(::domains/ActivateVanitySubdomainRequest({
  project_ref: "my-project-ref",
  vanity_subdomain: "myapp"
}))
result.custom_domain

check-vanity-subdomain

fn (request: CheckVanitySubdomainRequest): Map
fn (request: CheckVanitySubdomainRequest, opts: Map): Map

Check if a vanity subdomain is available.

Example

::domains ::supabase::admin::domains

result ::domains/check-vanity-subdomain(::domains/CheckVanitySubdomainRequest({
  project_ref: "my-project-ref",
  vanity_subdomain: "myapp"
}))
result.available  // => true

delete-custom-hostname

fn (project-ref: Str): Map
fn (project-ref: Str, opts: Map): Map

Remove the custom hostname configuration for a project.

Example

::domains ::supabase::admin::domains

::domains/delete-custom-hostname("my-project-ref")

delete-vanity-subdomain

fn (project-ref: Str): Map
fn (project-ref: Str, opts: Map): Map

Remove the vanity subdomain for a project.

Example

::domains ::supabase::admin::domains

::domains/delete-vanity-subdomain("my-project-ref")

get-custom-hostname

fn (project-ref: Str): DomainConfig
fn (project-ref: Str, opts: Map): DomainConfig

Get the custom hostname configuration for a project.

Example

::domains ::supabase::admin::domains

config ::domains/get-custom-hostname("my-project-ref")
// => {custom_hostname: "api.myapp.com", status: "ACTIVE", ...}

get-vanity-subdomain

fn (project-ref: Str): Map
fn (project-ref: Str, opts: Map): Map

Get the vanity subdomain configuration for a project.

Example

::domains ::supabase::admin::domains

config ::domains/get-vanity-subdomain("my-project-ref")
config.status

update-custom-hostname

fn (request: UpdateCustomHostnameRequest): Map
fn (request: UpdateCustomHostnameRequest, opts: Map): Map

Configure a custom hostname for a project. You must set up DNS records (CNAME) before activating.

Example

::domains ::supabase::admin::domains

::domains/update-custom-hostname(::domains/UpdateCustomHostnameRequest({
  project_ref: "my-project-ref",
  custom_hostname: "api.myapp.com"
}))

verify-custom-hostname

fn (project-ref: Str): Map
fn (project-ref: Str, opts: Map): Map

Verify DNS configuration for a custom hostname.

Example

::domains ::supabase::admin::domains

result ::domains/verify-custom-hostname("my-project-ref")
result.status

Types

ActivateVanitySubdomainRequest

ActivateVanitySubdomainRequest type {
    project_ref: Str,
    vanity_subdomain: Str
}

CheckVanitySubdomainRequest

CheckVanitySubdomainRequest type {
    project_ref: Str,
    vanity_subdomain: Str
}

DomainConfig

DomainConfig type {
    custom_hostname: Str?,
    status: Str?,
    data: Map?
}

UpdateCustomHostnameRequest

UpdateCustomHostnameRequest type {
    project_ref: Str,
    custom_hostname: Str
}