Svelte-kit build error "Deploy directory 'build' does not exist

Site is Netlify App

just trying to the a svelte-kit site up. npm run build complete successfully on local. The netlify build breaks on "Deploy directory ‘build’ does not exist. The build command is npm run build. build directory is set to public, I don’t know if that’s right. Any clues appreciated.

I’ve modified your repo to incorporate the required changes. Now, it should work without any additional config: GitHub - Hrishikesh-K/svelte-kit-tailwind-spike

In short, you need to follow this: Docs • SvelteKit and use the adapter-netlify mentioned there.

2 Likes

Perfect, thanks. I know the general direction of the solution but was hung up on the config syntax. Now I’m up and running, much appreciated.

1 Like