solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

[Bug?]: Cloudflare-pages deploy does not work

Open NorbertBodziony opened this issue 9 months ago • 8 comments

Duplicates

  • [x] I have searched the existing issues

Latest version

  • [x] I have tested the latest version

Current behavior 😯

After building solidstart app I can use it with Cloudflare dev mode but after deployment any requests returns 404. I am able to get static files tho.

Expected behavior 🤔

Deployment should work just as dev mode.

Steps to reproduce 🕹

Steps:

  1. Create new solid start project
  2. add to app.config.ts to preset: 'cloudflare-pages'
  3. Build
  4. Deploy to cloudflare

Context 🔦

I want to deploy solidstart app to cloudflare pages.

Your environment 🌎


NorbertBodziony avatar Feb 26 '25 15:02 NorbertBodziony

I am having the same issue.

joeygrable94 avatar Mar 02 '25 23:03 joeygrable94

we need more context to reproduce this. can you make a github repo?

huseeiin avatar Mar 03 '25 18:03 huseeiin

Same issue. https://github.com/Eliot00/benkyou-webapp

Eliot00 avatar Mar 04 '25 12:03 Eliot00

19:53:50.840 | vinxi building router ssr in http mode
-- | --
19:53:51.113 | [error] defaultServerConditions is not iterable
19:53:51.113 | at configEnvironment (node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite-plugin-solid/dist/esm/index.mjs:133:43)
19:53:51.113 | at async runConfigEnvironmentHook (node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-ByPKlqZ5.js:54653:19)
19:53:51.113 | at async resolveConfig (node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-ByPKlqZ5.js:54038:3)
19:53:51.114 | at async createBuilder (node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-ByPKlqZ5.js:51930:18)
19:53:51.114 | at async Module.build (node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-ByPKlqZ5.js:51219:19)
19:53:51.114 | at async createViteBuild (node_modules/.pnpm/[email protected][email protected]/node_modules/vinxi/lib/build.js:395:17)
19:53:51.114 | at async createRouterBuild (node_modules/.pnpm/[email protected][email protected]/node_modules/vinxi/lib/build.js:529:2)
19:53:51.114 | at async node_modules/.pnpm/[email protected][email protected]/node_modules/vinxi/lib/build.js:59:5
19:53:51.115 | at async createBuild (node_modules/.pnpm/[email protected][email protected]/node_modules/vinxi/lib/build.js:58:4)
19:53:51.115 | at async Object.run (node_modules/.pnpm/[email protected][email protected]/node_modules/vinxi/bin/cli.mjs:235:5)
19:53:51.115 | at async runCommand (node_modules/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:316:16)
19:53:51.115 | at async runCommand (node_modules/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:307:11)
19:53:51.115 | at async runMain (node_modules/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:445:7)
19:53:51.115 |  
19:53:51.115 | [error] defaultServerConditions is not iterable
19:53:51.123 | [error] Exited with code: 1
19:53:51.124 | at CommandChild.pipedStdoutBuffer (node_modules/.pnpm/[email protected]/node_modules/dax-sh/esm/mod.js:9392:19)
19:53:51.124 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Eliot00 avatar Mar 04 '25 12:03 Eliot00

Same issue. https://github.com/Eliot00/benkyou-webapp

the build succeeded and i got "500 internal server error" in both dev and prod because i don't have supabase credentials, so it works fine, there's no 404

huseeiin avatar Mar 04 '25 12:03 huseeiin

I got build error in cloudflare, not runtime 404 error.

Eliot00 avatar Mar 04 '25 12:03 Eliot00

In the end, I successfully deployed it by manually building and uploading it locally, but the Cloudflare Github Action deployment encountered an error.

Eliot00 avatar Mar 04 '25 12:03 Eliot00

FWIW my nontrivial cloudflare_pages project successfully deployed on with the latest solid-start, vite, and vinxi.

AlexErrant avatar Mar 05 '25 00:03 AlexErrant

Are we good to close this then? Cloudflare definitely seems to always need the most configuration

brenelz avatar Aug 04 '25 02:08 brenelz