GradientEdge CDK Utils
    Preparing search index...

    Properties for creating a Cloudflare Workers Custom Domain

    interface WorkerDomainProps {
        accountId: Input<string>;
        enabled?: Input<boolean | undefined>;
        environment?: Input<string | undefined>;
        hostname: Input<string>;
        previewsEnabled?: Input<boolean | undefined>;
        service: Input<string>;
        zoneId?: Input<string | undefined>;
        zoneName?: Input<string | undefined>;
    }

    Hierarchy

    • WorkersCustomDomainArgs
      • WorkerDomainProps
    Index
    accountId: Input<string>

    Identifier.

    enabled?: Input<boolean | undefined>

    Whether the configured hostname is routable for the domain. If disabled, then requests to the configured hostname will not be routed to the configured Worker. If disabled, then preview routing must be enabled, and only subdomains of the configured hostname will be routable.

    environment?: Input<string | undefined>

    Worker environment associated with the domain.

    This attribute is deprecated.

    hostname: Input<string>

    Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.

    previewsEnabled?: Input<boolean | undefined>

    Whether previews are routable for the domain. If enabled, previews will be routable as subdomains of the configured hostname. For example, if the configured hostname is app.example.com, then requests to my-feature.app.example.com will be routed to the preview with slug my-feature, if such a preview exists. If preview routing is disabled, then hostname routing must be enabled.

    service: Input<string>

    Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.

    zoneId?: Input<string | undefined>

    ID of the zone containing the domain hostname.

    zoneName?: Input<string | undefined>

    Name of the zone containing the domain hostname.