wafle_domains_add
Attach a custom domain to a wafle store. Receive a verification token and the DNS instructions needed to complete setup and enable SSL provisioning.
Instructions
Attach a new custom domain (e.g. 'mi-tienda.com') to a wafle store. Wafle generates a verification_token and returns the 3 alternative DNS instructions the tenant must apply.
After creating, the tenant updates DNS at their provider, then call wafle_domains_verify (or wait for the 5min cron) to drive verification + SSL + nginx provisioning.
Validation rules: lowercase FQDN only, no IPs, no wildcards, no .wafle.click subdomains, max 10 active domains per tenant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Wafle store slug, e.g. 'gamerland' or 'lensitive'. | |
| domain | Yes | FQDN to attach. Strip protocol + trailing slash. e.g. 'mi-tienda.com' or 'shop.example.com'. | |
| force_https | No | If true (default), HTTP traffic is 301'd to HTTPS once the cert is live. | |
| redirect_www | No | If true (default), www.<domain> is also bound and redirected to the apex. | |
| custom_target_url | No | Required if storefront_target='custom'. Absolute URL to proxy to. | |
| storefront_target | No | Where requests to this domain should land (default: main = storefront). | |
| verification_method | No | Preferred verification method to highlight in the UI. Any one method passes. |