Skip to content

Deploy public configuration as Worker variables - #133

Merged
fengmk2 merged 2 commits into
mainfrom
fix/sync-deployment-config
Oct 14, 2026
Merged

fengmk2 merged 2 commits into
mainfrom
fix/sync-deployment-config

Conversation

@fengmk2

@fengmk2 fengmk2 commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

config/production.env contains public settings, but deployments previously required a separate secret upload. This could leave WORKSPACE_PACKAGES outdated and reject new preview packages.

Load these settings through worker.vars in void.config.ts, so each deployment includes the current values. Keep ADMIN_TOKEN in env.ts and remote secret storage. Production deployments continue to use OIDC without secret-write access.

Existing projects must remove the old public entries from remote secret storage because those entries override worker.vars. Secret deletion changes the running Worker immediately. The deployment guide describes the required migration during a maintenance window.

@fengmk2 fengmk2 changed the title Sync configuration before staging and production deploys Deploy public configuration as Worker variables Oct 14, 2026
@fengmk2
fengmk2 merged commit 5fe6ff0 into main Oct 14, 2026
4 checks passed
@fengmk2
fengmk2 deleted the fix/sync-deployment-config branch October 14, 2026 14:05
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