n naroDocs

Next.js (static export)

A Next.js project that sets output: "export" has no server to adapt. naro builds it and serves the exported files as a static site, so the Cloudflare adapter is never involved.

Detected by
next
Build command
npm run build
Output directory
out
Runtime
Static assets
SPA fallback
No
Build cache
.next/cache

How it is detected

naro reads next.config for a literal output: "export". A computed value is not followed — pick Next.js (static export) in project settings when the config decides at build time.

Nothing runs on a server: route handlers, middleware, ISR and on-demand revalidation are unavailable. An unknown path serves the exported 404 page rather than falling back to index.html.

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.