Static exports and output configuration
Answer: Next.js enables starting as a static site or Single-Page Application. When running next build, Next.js generates an HTML file per route and generates the static export into the out folder.
Tracing
During a build, Next.js will automatically trace each page and its dependencies.
See also
Claims
- id: C1 claim: Next.js can start as a static site or SPA. source: S1 evidence: "Next.js enables starting as a static site or Single-Page Application"
- id: C2 claim: Static export writes HTML per route. source: S1 evidence: "When running
next build, Next.js generates an HTML file per route."
- id: C3 claim: Build traces each page and dependencies. source: S2 evidence: "During a build, Next.js will automatically trace each page and its"
- id: C4 claim: Static export lands in the out folder. source: S1 evidence: "When running
next build, Next.js generates the static export into theoutfolder."
Sources
- [S1] Static exports. Next.js docs. https://nextjs.org/docs/app/guides/static-exports . License: MIT (vercel/next.js). Accessed 2026-11-09.
- [S2] output. Next.js docs. https://nextjs.org/docs/app/api-reference/config/next-config-js/output . License: MIT (vercel/next.js). Accessed 2026-11-09.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Copyright (c) 2025 Vercel, Inc. Sources: Next.js docs (vercel/next.js on GitHub / nextjs.org), MIT (https://raw.githubusercontent.com/vercel/next.js/canary/license.md). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Next.js docs, Static exports, MIT (vercel/next.js); Next.js docs, output, MIT (vercel/next.js). Copyright (c) 2025 Vercel, Inc. MIT (https://raw.githubusercontent.com/vercel/next.js/canary/license.md).
Cite this
iinventedlight. 2026. "Static exports and output configuration." iinventedlight Library, iil:note:mnvr3pnb, version of 2026-11-09. https://iinventedlight.com/library/notes/nextjs-static-exports/. License: CC-BY-4.0.
@misc{iil_note_mnvr3pnb,
author = {{iinventedlight}},
title = {{Static exports and output configuration}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-09},
url = {https://iinventedlight.com/library/notes/nextjs-static-exports/},
note = {Permanent ID iil:note:mnvr3pnb. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/nextjs-static-exports.md.