Skip to content

🚀 Feature Request: Support Wildcard Domain Routings on Workers #5568

Description

@hrueger

Describe the solution

Hi, when currently using routes for Workers with wildcards, you get the following error:

✘ [ERROR] Cannot use "*.admin.my.app" as a Custom Domain; wildcard operators (*) are not allowed

Example config:

routes = [
	{ pattern = "my.app", custom_domain = true },
    { pattern = "*.my.app", custom_domain = true }
]

When doing the same thing in the dashboard, it works fine, resulting in:
grafik

However, when adding some routes in the dashboard manually but managing others in the toml file, the next deployment overwrites the manually added domains... :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions