Skip to content

Fix Cloudflare preset not generating functioning applications#2116

Open
dario-piotrowicz wants to merge 1 commit intosolidjs:mainfrom
dario-piotrowicz:dario/fix-vite-plugin-nitro-2-cloudflare-presets
Open

Fix Cloudflare preset not generating functioning applications#2116
dario-piotrowicz wants to merge 1 commit intosolidjs:mainfrom
dario-piotrowicz:dario/fix-vite-plugin-nitro-2-cloudflare-presets

Conversation

@dario-piotrowicz
Copy link

@dario-piotrowicz dario-piotrowicz commented Mar 18, 2026

PR Checklist

Please check if your PR fulfills the following requirements:

What is the current behavior?

Setting up a Cloudflare preset in the plugin's configuration object results in builds not producing a functioning result (see #2115)

What is the new behavior?

A Cloudflare preset can be passed to the plugin's configuration object and builds do produce functioning applications.

Other information

To manually test the changes, create a solid start app via npm create solid, apply one of the cloudflare presets, run npm run build follows by the wrangler dev command that the build command presents in its output and see that the resulting application does not render. Try again but using this PRs pkg-pr-new and see that now it works as intended.

Note: I only tested the changes with cloudflare-module since, as far as I know, it's the generally preferred preset for Cloudflare deployments

@netlify
Copy link

netlify bot commented Mar 18, 2026

Deploy Preview for solid-start-landing-page ready!

Name Link
🔨 Latest commit a17ec8b
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/69bb26c8bd04bc0008ac0f16
😎 Deploy Preview https://deploy-preview-2116--solid-start-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot
Copy link

changeset-bot bot commented Mar 18, 2026

🦋 Changeset detected

Latest commit: a17ec8b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 18, 2026

Open in StackBlitz

npm i https://pkg.pr.new/solidjs/solid-start/@solidjs/start@2116
npm i https://pkg.pr.new/solidjs/solid-start/@solidjs/vite-plugin-nitro-2@2116

commit: a17ec8b

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.

[Bug?]: nitroV2Plugin doesn't generate a valid output with Cloudflare presets

1 participant