Building app for static file hosting
Is it possible to build a Solid Start app such that it can be hosted on a static file hosting platform? Since I'm not using ssr, and have set
start.ssr
to false
, I really don't see why I should build for a node server. Is there any way to change it?8 Replies
set
start.server.preset
to 'static'
and the .output/public
directory will be all you need to deployI see. I'm guessing it's not possible to prerender when that is set, right? I tried setting
start.server.prerender.crawlLinks
to true
, also start.server.ssr
to true
(and combinations thereof) but the resulting .output/public/index.html
was always an empty shellthis setup seems to be working for me
Aha! Setting
start.ssr
to async
did it, thanks! Where can I learn more on why that is the case (i don't yet fully understand where that setting is passed: nitro? vinxi? vinxi then nitro?)?
also, underlated, what editor is that?My guess is it's something to do with how hydration is expected to occur.
ssr: "async"
flushes server stuff to the client all at once and lets the client take over from there (where the server = the prerenderer), but ssr: true
uses streaming and expects to be able to piecemeal send things to the clientZed
Zed - Code at the speed of thought
Code at the speed of thought. Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ah ok, got it
ty
I'm trying to get a site going on github pages, (with github-pages preset), but for some reason the .output doesn't contain any .html files
while my site is working on the vinxi dev, the build appear to be quite broken. Did you manage to deploy it?