tezvyn:

SvelteKit Prerendering: Build-Time HTML for Faster Sites

Source: svelte.devintermediate

SvelteKit prerendering creates static HTML files at build time for instant loads. It's ideal for content that doesn't change per user, like marketing pages or blog posts. The main footgun: unlinked pages won't be found unless you explicitly list them.

SvelteKit prerendering turns pages into static HTML at build time, bypassing on-demand server rendering for instant loads. It's perfect for non-dynamic content like marketing pages or blog posts, improving speed and SEO. You can enable it globally and disable it for specific dynamic routes. The main footgun is that the build crawler only finds pages linked via `<a>` tags; unlinked pages must be explicitly configured to be included in the build.

Read the original → svelte.dev

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

SvelteKit Prerendering: Build-Time HTML for Faster Sites · Tezvyn