Static Site Generation
Sveleton uses SvelteKit's adapter-static to generate fully
pre-rendered HTML pages at build time. Every route is converted to static
HTML and output to the build/ directory, making the site
incredibly fast and suitable for hosting on any static file server.
How It Works
During the build process, SvelteKit crawls all routes starting from the root
and generates static HTML files. The adapter outputs a 200.html fallback file for client-side routing, ensuring smooth navigation between
pages without full page reloads.
All pages are pre-rendered by default using SvelteKit's prerender = true configuration. This means content is generated once at build time, not on
each request, resulting in optimal performance and SEO.
Benefits
Static site generation offers significant advantages for media projects: blazing-fast page loads, perfect SEO crawlability, and simple deployment to any CDN or static host. No server required.
Read next