Curvea

CLI

curvea build

Builds the static production site.

For a generated project, use:

npm run build

The script invokes the local curvea build binary.

Page validation

A build requires:

src/pages

and at least one .csc page. Missing or empty page input throws an error before the existing dist directory is cleared.

Output

A valid build recreates:

dist/

The command prepares assets, parses pages, creates static/dynamic/content/paginated entries, resolves data and templates, renders the document shell, and writes each route as an index.html file.

Sitemap

When sitemap is enabled with:

npx curvea add sitemap

curvea build also writes:

dist/sitemap.xml

Sitemap generation requires site.url.