megachangelog
Feature

Workers per-branch preview URLs now support long branch names

Workers preview URLs now automatically handle branch names exceeding 63 characters by truncating them and appending a unique hash, ensuring every pull request gets a working preview link. This requires Wrangler 4.30.0 or later and works automatically with existing setups.

We've updated preview URLs for Cloudflare Workers to support long branch names.

Previously, branch and Worker names exceeding the 63-character DNS limit would cause alias generation to fail, leaving pull requests without aliased preview URLs. This particularly impacted teams relying on descriptive branch naming.

Now, Cloudflare automatically truncates long branch names and appends a unique hash, ensuring every pull request gets a working preview link.

How it works

  • 63 characters or less: <branch-name>-<worker-name> → Uses actual branch name as is
  • 64 characters or more: <truncated-branch-name>--<hash>-<worker-name> → Uses truncated name with 4-character hash
  • Hash generation: The hash is derived from the full branch name to ensure uniqueness
  • Stable URLs: The same branch always generates the same hash across all commits

Requirements and compatibility

  • Wrangler 4.30.0 or later: This feature requires updating to wrangler@4.30.0+
  • No configuration needed: Works automatically with existing preview URL setups
workerspreview-urlsdnsci-cd

Source: original entry ↗

More from Cloudflare

Follow Cloudflare to get its new changes in your feed and email digest.

Fix2026.8.2115.0

Cloudflare One Client for Linux

A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.

linuxclientcertificateshotfix
See all Cloudflare changes →