Skip to content

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

Merged
cpojer merged 3 commits into
voidzero-dev:mainfrom
0froq:fix/deploy-apptype-static-guard
Nov 22, 2026
Merged

cpojer merged 3 commits 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.

0froq and others added 3 commits November 21, 2026 01:27
…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.

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cpojer
cpojer merged commit eb9f79d into voidzero-dev:main Nov 22, 2026
19 checks passed
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

2 participants