Skip to content

fix(deploy): honor a configured inference.appType in the Cloudflare s… - #889

Open
0froq wants to merge 1 commit into
voidzero-dev:mainfrom
0froq:fix/deploy-apptype-static-guard
Open

0froq wants to merge 1 commit into
voidzero-dev:mainfrom
0froq:fix/deploy-apptype-static-guard

Conversation

@0froq

@0froq 0froq commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

This description was drafted by an agent from the diff and the commands it ran. froQ🐸 has reviewed it.

Fixes #885

Description

resolveCloudflareStaticPreset re-ran strict SSG detection even when inference.appType was configured, so the guide's own setup for a VitePress site with a backend could not pass the check that asks for that option.

Detection now runs only when nothing is configured, the same condition deploy.ts and prepareDeployArtifact use. static and spa resolve earlier, so a configured app type here is void or framework, and both mean a Worker deploy.

Test

packages/void/test/unit/preset.test.ts adds the case returns null for a configured appType "void" with an SSG plus backend, which fails without this change and passes with it.

…tatic check

The direct Cloudflare branch re-ran strict preset detection even when the app
type was configured, so a VitePress site with `routes/` and the guide's own
`appType: "void"` was refused with a message telling the user to set that option.

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.

void deploy --platform cloudflare ignores inference.appType: "void" and refuses a VitePress site with a backend

1 participant