Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
NorbertBodziony opened this issue Feb 26, 2025 · 8 comments
Open
2 tasks done

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

NorbertBodziony opened this issue Feb 26, 2025 · 8 comments
Labels
bug Something isn't working needs triage

Comments

@NorbertBodziony
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • 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 NorbertBodziony added bug Something isn't working needs triage labels Feb 26, 2025
@joeygrable94
Copy link

I am having the same issue.

@huseeiin
Copy link
Contributor

huseeiin commented Mar 3, 2025

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

@Eliot00
Copy link

Eliot00 commented Mar 4, 2025

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

@Eliot00
Copy link

Eliot00 commented Mar 4, 2025

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)

@huseeiin
Copy link
Contributor

huseeiin commented Mar 4, 2025

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

@Eliot00
Copy link

Eliot00 commented Mar 4, 2025

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

@Eliot00
Copy link

Eliot00 commented Mar 4, 2025

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

@AlexErrant
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

5 participants