iNdra
Solidstart with CSR, SSR and SSG?
I found the details. Thank you for support. Default ssr is ture in app.config.ts https://docs.solidjs.com/solid-start/reference/config/define-config when I change it, it is CSR. When set
defineConfig({ server: { presets: 'static' }})
it will be SSG. crawlLinks: true
will generate routes. https://docs.solidjs.com/solid-start/building-your-application/route-prerendering, https://nitro.unjs.io/config#prerender9 replies
How SolidStart SSR (& hydration) work?
Oh I thought solidstart codes are combination of code. Client side and Server side. Thank you very much for information.
I wounder how to reference DOM with JS. Now it is clear. I also thought, if that can link HTML DOM with JS, someone can create packages for python, PHP, rust to send HTML with comments from server like JS do. So then can make full stack frameworks. Just an idea.
27 replies
How to work with SSR pages?
But the reality is that 80% of the internet seems to PHP-based anyway and eBay seems to do OK with Marko's Node.js based rendering—it's React SSR that is slow.Yeah most of website PHP based because of wordpress. Rust is new and has more learning curve so most developers not use. But when use rust, long term website have more profit like PHP use. But not like NodeJS. NodeJS always uses more hardware resource to run and always use.
20 replies