How to deploy a SvelteKit application to Vercel

Things you’ll need:

  • a SvelteKit project
  • a Vercel account
  • Vercel CLI


Set up your SvelteKit project:

  • Create a new SvelteKit project.
pnpm create svelte sveltekitchen
  • Follow the prompts.

  • Navigate to the project directory.

cd sveltekitchen
  • Install project dependencies.
pnpm i

Create a Vercel account:

Install the Vercel CLI:

  • Install the Vercel CLI globally on your machine.
pnpm i -g vercel
  • Log in to Vercel using the CLI.
vercel login
  • Follow the prompts.

Deploy to Vercel:

  • Initiate the deployment process.
  • Follow the prompts and provide the requested information, such as the project path, deployment name, and build command.

  • Once the deployment process is complete, Vercel will provide you with a deployment URL.

Serve and enjoy:

  • Visit the provided deployment URL to access your deployed SvelteKit application.


Svelte Kitchen @ 2024