Reference

@reckona/mreact-router/adapters/static

3 public exports.

Function

FunctionexportStaticAppfunction exportStaticApp(options: StaticExportOptions): Promise<StaticExportResult>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.

Interface

InterfaceStaticExportOptionsinterface StaticExportOptionsConfigures static export from a built app-router output directory.InterfaceStaticExportResultinterface StaticExportResultLists the routes written by a static app-router export.