4 ms·
SvelteKit now has a static adapter[1] which is designed for those kinds of scenarios, defaulting to pre-rendering all pages and not requiring a server I think.
by Ameo 5y ago
SvelteKit now has a static adapter[1] which is designed for those kinds of scenarios, defaulting to pre-rendering all pages and not requiring a server I think. I've not tried it out myself though, but it might be good for that if you want to bring your own API.
> I would recommend vanilla Svelte + Routify instead of Kit.
That sounds like a solid way to go as well. SvelteKit has some nice tools for 100% static sites that do stuff like generate pages at build time from markdown and stuff like that. But if your site is really simple, then that works fine.
[1] https://www.npmjs.com/package/@sveltejs/adapter-static/v/next https://www.npmjs.com/package/@sveltejs/adapter-static/v/nex...
- square_usual 5y agoI tried the static adpater, but it still has issues as acknowledged here: https://github.com/sveltejs/kit/issues/1650 https://github.com/sveltejs/kit/issues/1650 In that thread, you can see some of the ugly workarounds people have to go through to make purely client-side apps: https://github.com/sveltejs/kit/issues/1650#issuecomment-984155203 https://github.com/sveltejs/kit/issues/1650#issuecomment-984...