Skip to content

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

Done

Description

@hyfdev

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 sends the assets' _headers but leaves out _redirects, so their redirects stop working from that deploy on:

GET /old -> 404

To reproduce, deploy an Astro SSR app with /old /target.txt 302 in public/_redirects to a Worker that already has a secret, then request /old.

I checked this against a local mock of the Cloudflare API, not a real account.

Plain Void apps aren't affected, because they compile their _redirects rules into the Worker.

#956 fixes it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions