Repository navigation
fix(deploy): create void.config.ts on the first direct Cloudflare deploy - #954
Merged
Merged
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://fix-fresh-cloudflare-config-void-cloud.voidzero-docs.workers.dev (commit 5063022)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
hyfdev
marked this pull request as ready for review
November 28, 2026 08:38
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Running
void deploy --platform cloudflarein a new TanStack Start, React Router or vinext app, or in a Void app created withoutvoid init, fails while Vite loads its config:Without a
void.config.ts, deploy writes the Worker name and account to a rootwrangler.jsonc, which the v2 Cloudflare Vite plugin rejects.This has failed since Void 1.5.0.
Running
void connect --platform cloudflarefirst avoids it, because deploy then migrates the root file thatconnectwrote before the build starts.Deploy now writes a minimal
void.config.tswith the Worker name and compatibility date before it creates any resources, so a retry after an interrupted first deploy reuses them.A project with saved deploy state but no config, or with both a
void.config.tsand a rootwrangler.jsoncleft by an earlier failed deploy, now stops with instructions to recover.Projects that already have a config, Nuxt, Analog, Astro, SvelteKit, static deploys and deploys to a Void platform are unchanged.
Related to #445.
Fixes #957