Reference

exportStaticApp

Exports prerendered app-router routes and client assets to a static filesystem directory. Only routes present in the built prerender manifest can be exported; the export directory is removed and recreated, and route paths are checked to prevent traversal outside it.

Signature

function exportStaticApp(options: StaticExportOptions): Promise<StaticExportResult>