Skip to content

fix(deploy): keep framework redirects when a deploy inherits secrets - #956

Merged
cpojer merged 1 commit into
mainfrom
fix/cf-version-asset-redirects
Nov 28, 2026
Merged

cpojer merged 1 commit into
mainfrom
fix/cf-version-asset-redirects

Conversation

@hyfdev

@hyfdev hyfdev commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Once a Worker has a secret, void deploy --platform cloudflare uploads later versions through Cloudflare's Versions API so they inherit it.

For framework apps such as Astro or TanStack Start, that upload sent the assets' _headers but left out _redirects, so their redirects stopped working from that deploy on:

GET /old -> 404                        # main, after a deploy that inherited a secret
GET /old -> 302 Location=/target.txt   # with this change

The upload now also sends _redirects for apps a framework builds, as deploys without an inherited secret already do.

Plain Void apps compile their _redirects rules into the Worker, so their uploads are unchanged.

Fixes #958

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-cf-version-asset-redirects-void-cloud.voidzero-docs.workers.dev (commit 716badf)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://00bf3158-void-cloud.voidzero-docs.workers.dev 716badf 2026-11-28T09:22:06.962Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://fea15813-void-cloud.voidzero-docs.workers.dev a304c26 2026-11-28T08:22:38.044Z Visit the dashboard ↗

@hyfdev
hyfdev marked this pull request as ready for review November 28, 2026 08:38
Copilot AI balanced review requested due to automatic review settings November 28, 2026 08:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@cpojer
cpojer force-pushed the fix/cf-version-asset-redirects branch from a304c26 to 716badf Compare November 28, 2026 09:20

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cpojer
cpojer merged commit 993a41b into main Nov 28, 2026
22 checks passed
@cpojer
cpojer deleted the fix/cf-version-asset-redirects branch November 28, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Framework app redirects stop working after a deploy that inherits a Worker secret

3 participants