<- Back

How To Deploy Sapper To Netlify

This site is built with Sapper / Svelte and deployed by generating statically.

I just wanted to share the process that I did to deploy it there.


  • Basic Sapper skills
  • A Sapper project
  • A positive attitude

How to deploy Sapper to Netlify

Update the build command in your package.json to look like this. So that after statically building your site, your export folder is moved into the root as public.


  "scripts": {
        "build": "sapper export && mv ./__sapper__/export ./public",

Next, we just need to commit and push to Github (or whatever version control you're using).