n naroDocs

Astro

Astro sites build with astro build and deploy the static output in dist/.

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

Static output only

Server endpoints, on-demand pages (prerender = false) and adapters need a server. naro refuses a project that uses an adapter or sets output: "server" instead of deploying a site with missing routes.

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.