S
SolidJS12mo ago
veeque

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
Brendonovich
Brendonovich12mo ago
set start.server.preset to 'static' and the .output/public directory will be all you need to deploy
veeque
veequeOP12mo ago
I 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 shell
Brendonovich
Brendonovich12mo ago
this setup seems to be working for me
No description
veeque
veequeOP12mo ago
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?
Brendonovich
Brendonovich12mo ago
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 client
Brendonovich
Brendonovich12mo ago
Zed
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.
veeque
veequeOP12mo ago
ah ok, got it ty
Birk Skyum
Birk Skyum12mo ago
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?
Want results from more Discord servers?
Add your server