Vercel Blog

New features for SvelteKit: Optimize your application with ease

thumbnail

New Features for SvelteKit

  • Vercel has added support for SvelteKit, offering per-route configuration for Serverless and Edge Functions, Incremental Static Regeneration (ISR), and better compatibility with Vercel products.
  • A one-click deploy SvelteKit template with ISR and Serverless and Edge Functions is available.
  • SvelteKit apps build to platform-agnostic JavaScript and require an adapter to deploy to the platform of choice.
  • SvelteKit apps can access data returned by a function in the same directory, which can run on the client or server, and can fetch data at the Layout level for all child routes.
  • You can choose whether a route uses Serverless or Edge Functions, and whether it uses SSR, SSG, or ISR.
  • Tweaking your runtime in the application's Svelte config sets the default behavior for the entire application, such as specifying the location of Serverless Functions and Edge Functions.
  • Configuring ISR involves including the property in the server-side config object.
  • Vercel offers Edge Config, which is a near-0ms latency data store that enables reading data at the edge without querying an external database.
  • You can use various Vercel data solutions such as Vercel KV, Postgres, and Edge Config, and configure fetching and rendering for Edge Functions, Serverless Functions, and ISR.