solid-start
solid-start copied to clipboard
[Bug?]: Cloudflare-pages deploy does not work
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:
- Create new solid start project
- add to app.config.ts to
preset: 'cloudflare-pages' - Build
- Deploy to cloudflare
Context 🔦
I want to deploy solidstart app to cloudflare pages.
Your environment 🌎
I am having the same issue.
we need more context to reproduce this. can you make a github repo?
Same issue. https://github.com/Eliot00/benkyou-webapp
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)
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
I got build error in cloudflare, not runtime 404 error.
In the end, I successfully deployed it by manually building and uploading it locally, but the Cloudflare Github Action deployment encountered an error.
FWIW my nontrivial cloudflare_pages project successfully deployed on with the latest solid-start, vite, and vinxi.
Are we good to close this then? Cloudflare definitely seems to always need the most configuration