Svelte Kit
Last updated
Was this helpful?
Last updated
Was this helpful?
SvelteKit is a framework for rapidly developing robust, performant web applications using . If you're coming from React, SvelteKit is similar to Next.
SvelteKit allows server-side rendering, but also can be disabled to let application be single app application (spa)
The page can act as an api
'Hooks' are app-wide functions you declare that SvelteKit will call in response to specific events, giving you fine-grained control over the framework's behaviour
Allows you to modify (or replace) a fetch
request that happens inside a load
or action
function that runs on the server
Every time the SvelteKit server receives a — whether that happens while the app is running, or during — and determines the . It receives an event
object representing the request and a function called resolve
, which renders the route and generates a Response
. This allows you to modify response headers or bodies, or bypass SvelteKit entirely