n naroDocs

SvelteKit

SvelteKit apps deploy with @sveltejs/adapter-static: every page is prerendered and served from build/.

Detected by
@sveltejs/kit
Build command
npm run build
Output directory
build
Runtime
Static assets
SPA fallback
No
Build cache
None

Use adapter-static

naro checks that svelte.config or vite.config imports @sveltejs/adapter-static. With adapter-auto the build succeeds but writes nothing to serve, so naro refuses it up front. Add export const prerender = true to your root layout.

Deploy it

Run this inside the project. The first deploy creates and links it.

npx naro-cli deploy
npx naro-cli deploy --prod

Overrides

Project settings → Build configuration changes the build script and output directory for a project that does not follow its framework's defaults.