Skip to content

Commit b53f9a9

Browse files
committed
change log for aliased preview urls
1 parent 04a607d commit b53f9a9

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

images/comment.png

253 KB
Loading
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: "Stable branch-based preview aliases now available for Cloudflare Workers"
3+
description: "Automatic preview aliases for Worker deployments, enabling improved preview flows and pull request collaboration"
4+
products:
5+
- workers
6+
date: "2025-07-16T01:00:00Z"
7+
---
8+
9+
We are introducing **automatic preview aliases for Cloudflare Workers**, now available in public beta.
10+
11+
Just like in Pages, each pull request now includes a comment with a **stable, aliased preview URL** based on the branch name. The URL stays the same with every commit and always points to the latest version of that branch, making it easier to test, share, and collaborate on changes.
12+
13+
This is another step toward bringing full feature parity between Pages and Workers.
14+
15+
## How it works
16+
17+
When you create a pull request:
18+
19+
- **A preview alias is automatically created** based on the Git branch name (e.g., `<branch-name>` becomes `<branch-name>-<worker-name>.<subdomain>.workers.dev`)
20+
- **No configuration is needed**, the alias is generated for you
21+
- **Preview URLs are posted directly to PR comments** just like in Pages
22+
23+
![PR comment preview](images/comment.png)
24+
25+
## Preview URL types
26+
27+
Each PR comment includes **two preview URLs** as shown above:
28+
29+
* **Commit Preview URL**: Unique to the specific version/commit (e.g., `<version-prefix>-<worker-name>.<subdomain>.workers.dev`)
30+
* **Branch Preview URL**: A stable alias based on the branch name (e.g., `<branch-name>-<worker-name>.<subdomain>.workers.dev`)
31+
32+
## Custom alias name
33+
34+
You can still assign a custom preview alias using the Wrangler CLI:
35+
36+
```bash
37+
wrangler versions upload --preview-alias staging
38+
```
39+
40+
## Current limitations
41+
42+
* Only available on the **workers.dev** subdomain (custom domains not yet supported)
43+
* A maximum of **20 aliases per Worker** are retained (least recently used aliases are automatically removed)
44+
* Requires **Wrangler v4.21.0+**
45+
* Not generated for Workers that use **Durable Objects**
46+
* Not yet supported for **Workers for Platforms**
47+
48+
We are actively refining the experience. Stay tuned as we continue expanding preview and collaboration workflows.

0 commit comments

Comments
 (0)