Solid-start site shows blank page when deployed with github-pages
This is the deploy.yml I used https://nitro.unjs.io/deploy/providers/github-pages
repo https://github.com/eeek76/eeek76.github.io
I tried a minimal solid-start example and the deployed site just shows 404 page.
GitHub Pages
Deploy Nitro apps to GitHub Pages.
GitHub
GitHub - eeek76/eeek76.github.io
Contribute to eeek76/eeek76.github.io development by creating an account on GitHub.
15 Replies
Only thing I can think of is setting the server preset but you already did that
or is it because of using github-actions?
i tried deploy from branch one, but the deploy doesnt even override the gh-branch with build files
If you pnpm build and pnpm start it works locally?
obviously
Can you change the github action to deploy to the
gh-pages
branch? That'd let you inspect what's actually being published. It looks like it's loading the 404
page, because your resources are actually there and loading, just not the html document you would expectBut the contents of the page are probably somewhat correct…
but nitro recommends using github actions
GitHub Pages
Deploy Nitro apps to GitHub Pages.
I haven't tried it out myself but https://dev.to/lexlohr/using-solid-start-with-github-pages-3iok
DEV Community
Using Solid Start with GitHub pages
⚠ Warning: the information in this article is outdated. There is a new version of solid-start that...
ah you're late, someone already linked this post to me and it works :solid:
GitHub
GitHub - NvChad/nvchad.github.io: Site for NvChad built using solid...
Site for NvChad built using solidjs + unocss. Contribute to NvChad/nvchad.github.io development by creating an account on GitHub.
Great! Happy it worked out!