Skip to content

fix(env): allow local values for required secrets during dev - #1040

Open
TheAlexLichter wants to merge 2 commits into
mainfrom
fix/dev-required-secret-values
Open

TheAlexLichter wants to merge 2 commits into
mainfrom
fix/dev-required-secret-values

Conversation

@TheAlexLichter

Copy link
Copy Markdown
Member

Void 1.13.1 prevents the dev server from starting when a required server key in env.ts is supplied through .env or the shell:

Worker var MY_VARIABLE_NAME conflicts with a Cloudflare binding of the same name.

The required-secret declaration becomes a native secret placeholder before Void applies local vars. Allow those vars to replace secret placeholders during serve, including named Cloudflare environments. Build and deploy conversion keeps the strict default, and resource binding collisions remain errors.

Fixes the regression introduced by 10426b5.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Cloudflare builds and deploys previews for this pull request. Learn more about Cloudflare previews.

Worker Status Deployment Commit
void-cloud Deployed Preview 7ace231

Updated: Dec 4, 2026, 15:15 UTC | Dashboard

This branch has not been deployed

No deployments
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.

1 participant