CustomDomain
Configure custom domain for a Cloudflare Worker using the Cloudflare Custom Domains API.Props
string
required
The domain name to bind to the worker.
string
Cloudflare Zone ID for the domain.
string
required
Name of the worker to bind to the domain.
string
default:"production"
Worker environment (defaults to production).
boolean
default:"false"
If true, adopt an existing custom domain binding during creation.
Output
string
The unique identifier for the Cloudflare domain binding.
string
The domain name bound to the worker.
string
Name of the worker bound to this domain.
string
Cloudflare Zone ID for the domain.
string
Worker environment.
number
Time at which the domain binding was created.
number
Time at which the domain binding was last updated.