Skip to main content

Function: runStaticExport()

runStaticExport(serverOptions, exportOptions?): Promise<StaticExportResult>

Defined in: static.ts:286

Convenience wrapper: starts a real Server instance, crawls it with exportStaticSite(), then stops it. Does not destroy serverOptions.objectFactory — the caller created it and owns its lifecycle (call objectFactory.destroy() after this resolves), matching the Server/ObjectFactory ownership split used elsewhere in this codebase.

Parameters

serverOptions

ServerOptions

exportOptions?

Omit<StaticExportOptions, "port"> = {}

Returns

Promise<StaticExportResult>