Restore worker name in wrangler.toml and keep preview URLs enabled#27
Restore worker name in wrangler.toml and keep preview URLs enabled#27ivanleomk wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
website-v1 | 1279140 | Jan 03 2026, 09:52 AM |
There was a problem hiding this comment.
Performed full review of c797a8e...90ee1d9
Analysis
-
Worker name "website-v1" conflicts with repository name "website-v4", potentially causing confusion for developers, deployment tracking issues, and conflicts if multiple versions need to coexist.
-
The naming mismatch between worker and repository creates configuration drift that could lead to maintenance challenges over time.
-
No documentation appears to exist explaining the worker/repository version mismatch, which may confuse new team members or create future migration difficulties.
Tip
Help
Slash Commands:
/review- Request a full code review/review latest- Review only changes since the last review/describe- Generate PR description. This will update the PR body or issue comment depending on your configuration/help- Get help with Mesa commands and configuration options
0 files reviewed | 1 comments | Edit Agent Settings • Read Docs
Motivation
name = "website-v1"to avoid breaking references.preview_urls = trueto allow preview/testing deployments.wrangler.tomlformatting to ensure thebinding = "ASSETS"line ends with a newline.mainandcompatibility_date.Description
name = "website-v1"inwrangler.tomlto revert the previous name normalization.preview_urls = trueto enable preview URLs.binding = "ASSETS"has a trailing newline.main = ".open-next/worker.js"andcompatibility_dateunchanged.Testing
Codex Task
TL;DR
Adds support for dynamic Cloudflare preview environments by enabling preview URLs and adding a prebuild script to generate sanitized environment aliases from branch names.
Why we made these changes
To allow for automatic preview deployments on Cloudflare for each pull request. This requires generating a valid, URL-safe alias from the Git branch name, which can contain invalid characters.
What changed?
scripts/preview-alias.sh: Added a new script to sanitize the branch name into a valid Cloudflare environment alias.package.json: Added aprebuild:cloudflarescript to run the alias generation script before the build.wrangler.toml: Enabled the preview feature by addingpreview_urls = true..gitignore: Ignored the.preview-aliasfile generated by the new script.Validation
Description generated by Mesa. Update settings