-
Notifications
You must be signed in to change notification settings - Fork 10k
change log for aliased preview urls #23668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
irvinebroque
merged 7 commits into
cloudflare:production
from
yomna-shousha:yomna/change-log-preview-urls
Jul 22, 2025
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b53f9a9
change log for aliased preview urls
yomna-shousha b30e092
edited aliased preview URL changelog to be more digestible by all aud…
yomna-shousha 3016607
Apply suggestions from code review
yomna-shousha fecfae1
removed alias limit
yomna-shousha 5a9ad27
change image location
yomna-shousha f3e30b7
Update src/content/changelog/workers/2025-07-23-workers-preview-urls.mdx
yomna-shousha 1fd388c
Merge branch 'cloudflare:production' into yomna/change-log-preview-urls
yomna-shousha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions
48
src/content/changelog/workers/2025-07-15-workers-preview-urls.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| --- | ||
| title: "Test your code changes instantly with automatic preview URLs for Cloudflare Workers" | ||
| description: "Get shareable preview links for every code change, making it easier to test and collaborate before going live" | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| products: | ||
| - workers | ||
| date: 2025-07-22T01:00:00Z | ||
| --- | ||
|
|
||
| We are introducing automatic aliased preview URLs for Cloudflare Workers, now available in public beta. | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| What this means: Just like Pages, every time you make code changes and create a pull request, you'll automatically get a shareable preview link where you can see your changes running, without affecting production. | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| These preview URLs are named after your branch and are posted as a comment to each pull request. The URL stays the same with every commit and always points to the latest version of that branch. | ||
|
|
||
|  | ||
|
|
||
| ## Preview URL types | ||
|
|
||
| Each PR comment includes **two preview URLs** as shown above: | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| * **Commit Preview URL**: Unique to the specific version/commit (e.g., `<version-prefix>-<worker-name>.<subdomain>.workers.dev`) | ||
| * **Branch Preview URL**: A stable alias based on the branch name (e.g., `<branch-name>-<worker-name>.<subdomain>.workers.dev`) | ||
|
|
||
| ## How it works | ||
|
|
||
| When you create a pull request: | ||
|
|
||
| - **A preview alias is automatically created** based on the Git branch name (e.g., `<branch-name>` becomes `<branch-name>-<worker-name>.<subdomain>.workers.dev`) | ||
| - **No configuration is needed**, the alias is generated for you | ||
| - **The link stays the same** even as you make more commits | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - **Preview URLs are posted directly to PR comments** just like in Pages | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Custom alias name | ||
|
|
||
| You can still assign a custom preview alias using the Wrangler CLI: | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```bash | ||
| wrangler versions upload --preview-alias staging | ||
| ``` | ||
|
|
||
| ## Current limitations | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| * Only available on the **workers.dev** subdomain (custom domains not yet supported) | ||
| * A maximum of **20 aliases per Worker** are retained (least recently used aliases are automatically removed) | ||
| * Requires **Wrangler v4.21.0+** | ||
| * Not generated for Workers that use **Durable Objects** | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * Not yet supported for **Workers for Platforms** | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| This brings Workers in line with our Pages platform, where preview URLs have been highly useful for developer workflows. Stay tuned as we continue expanding preview and collaboration workflows on Workers. | ||
yomna-shousha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.