|
|
|
|
|
by FractalHQ
1143 days ago
|
|
A static build in Sveltekit is as simple as changing 1 line in your config: `import adapter from “@sveltejs/adapter-auto”` becomes `import adapter from “@sveltejs/adapter-static”` Also, Sveltekit was designed as a serverless framework optimized for the edge long before Vercel hired Rich. Doing SSR on the edge right can be a hard problem to solve, so getting it for free “automagically” in Sveltekit is a huge value-add! Static site generation, on the other hand, has long been a solved problem. That said, I agree that a lot of sites are better off just being static. Nonetheless, being able to change one line in my Sveltekit config to deploy my static site onto Cloudflare Pages, Netlify, or my own node server thanks to Sveltekit’s adapters is pretty awesome in my experience! |
|
Also mentions about scenario JavaScript is disabled. I am not too sure if these frameworks help there with SSR. May be it meant the user can still see a pre-rendered page but with almost no interaction possible?
Essentially I was saying there is a push towards server based frameworks.
[1] https://kit.svelte.dev/docs/single-page-apps