n naroDocs

Vite

Any Vite project — React, Vue, Svelte, Solid, Preact, or plain TypeScript. naro runs your build and serves the output as static assets with SPA fallback.

Detected by
vite
Build command
npm run build
Output directory
dist
Runtime
Static assets
SPA fallback
Yes
Build cache
node_modules/.vite

Client-side routing

A request for a path with no matching file falls back to index.html, so client-side routers keep working on a hard refresh.

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.