Version preview alias URL returns "Page not found"

I'm trying to deploy a fully static site and support automatically creating preview URLs for PRs (manually rather than using the Git integration), but I'm having issues getting the alias URL to work. When uploading a new version, the Version Preview URL works just fine, but Version Preview Alias URL just returns the standard "There is nothing here yet" 404 page.
> npx wrangler versions upload --env preview --preview-alias test2

⛅️ wrangler 4.24.0 (update available 4.24.1)
─────────────────────────────────────────────
🌀 Building list of assets...
✨ Read 84 files from the assets directory D:\Projects\Plutonium\code\plutoniummod\docs\out
🌀 Starting asset upload...
No updated asset files to upload. Proceeding with deployment...
Total Upload: 0.31 KiB / gzip: 0.22 KiB
Worker Startup Time: 0 ms
Uploaded docs-preview (4.05 sec)
Worker Version ID: b4dd223b-e805-44fc-9091-8ab611a5f62f
Version Preview URL: https://b4dd223b-docs-preview.plutonium-ad3.workers.dev
Version Preview Alias URL: https://test2-docs-preview.plutonium-ad3.workers.dev

To deploy this version to production traffic use the command wrangler versions deploy

Changes to non-versioned settings (config properties 'logpush' or 'tail_consumers') take effect after your next deployment using the command wrangler versions deploy

Changes to triggers (routes, custom domains, cron schedules, etc) must be applied with the command wrangler triggers deploy
> npx wrangler versions upload --env preview --preview-alias test2

⛅️ wrangler 4.24.0 (update available 4.24.1)
─────────────────────────────────────────────
🌀 Building list of assets...
✨ Read 84 files from the assets directory D:\Projects\Plutonium\code\plutoniummod\docs\out
🌀 Starting asset upload...
No updated asset files to upload. Proceeding with deployment...
Total Upload: 0.31 KiB / gzip: 0.22 KiB
Worker Startup Time: 0 ms
Uploaded docs-preview (4.05 sec)
Worker Version ID: b4dd223b-e805-44fc-9091-8ab611a5f62f
Version Preview URL: https://b4dd223b-docs-preview.plutonium-ad3.workers.dev
Version Preview Alias URL: https://test2-docs-preview.plutonium-ad3.workers.dev

To deploy this version to production traffic use the command wrangler versions deploy

Changes to non-versioned settings (config properties 'logpush' or 'tail_consumers') take effect after your next deployment using the command wrangler versions deploy

Changes to triggers (routes, custom domains, cron schedules, etc) must be applied with the command wrangler triggers deploy
5 Replies
Walshy
Walshy5mo ago
cc: @Will Taylor | Workers
texan
texan5mo ago
Hey Eldor-- a fix is already in the works, we're just waiting on a release 🙂 https://github.com/cloudflare/workers-sdk/pull/9917
Eldor
EldorOP5mo ago
ah cool, thanks!
Walshy
Walshy5mo ago
@Eldor fix is released in Wrangler 4.24.2
Rabid
Rabid5mo ago
Would this have anything to do with why my github PRs don't have the "Preview URL" in the comment? The preview URL is in the CF build logs.

Did you find this page helpful?