Tool
deployment_domain_add
Attach a custom domain to an environment.
Behavior
- Returns
The domain record plus the CNAME and TXT DNS entries to publish.
Arguments
Name | Type | Required | Description |
|---|---|---|---|
environmentId | uuid | • | Environment to attach the domain to. |
hostname | string | • | The custom hostname, e.g. app.example.com (3–253 chars). |
defaultServiceId | uuid | • | Service that serves traffic for this hostname by default. |
pathPrefix | string | — | Path prefix, starting with /. Use letters, digits, slashes, underscores, or hyphens; at most 200 characters. |
redirectWww | boolean | — | Boolean setting for www redirection. |
Try it
Attach app.example.com to my production environment, routing to the web service.