Skip to Content

SvelteKit Boilerplate

A SvelteKit app including nested routes, layouts, and page endpoints.

Owner

2 2 npm init svelte@next

This uses the adapter-auto for SvelteKit, which detects Vercel and runs adapter-vercel on your behalf.

Svelte
  • Note: the @next is temporary
  • Developing
  • 1 npm run dev
  • Building

Repository

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

Starter
  • Everything you need to build a Svelte project, powered by create-svelte, deployed to Vercel.
  • 5 npm init svelte@next my-app
  • 4 npm run dev -- --open
  • Use Cases

GitHub

Creating a project examples

You can preview the built app with npm run preview, regardless of whether you installed an adapter. This should not be used to serve your app in production.

CSS