Interface: StaticExportOptions
Defined in: static.ts:35
Properties
appDir?
optionalappDir?:string
Defined in: static.ts:43
Filesystem path to the app directory, relative to cwd. Ignored when apps is given.
Unlike StaticExportApp.routePrefix, this single-app routePrefix is never part of the
output path — the export always serves this app from the site root. Default "app".
apps?
optionalapps?:StaticExportApp[]
Defined in: static.ts:56
Crawl multiple apps in one export — each with its own appDir/routePrefix/paths/
exclude — instead of the single-app appDir/routePrefix/paths/exclude fields
above. outDir is still cleaned exactly once regardless of app count.
assetsDir?
optionalassetsDir?:string
Defined in: static.ts:61
Directory of built hydration/static assets, copied verbatim into outDir.
Default "dist/public".
concurrency?
optionalconcurrency?:number
Defined in: static.ts:67
Maximum number of pages to crawl concurrently, across all apps. Default 5.
exclude?
optionalexclude?: (string|RegExp)[]
Defined in: static.ts:52
Route paths to skip. Ignored when apps is given.
host?
optionalhost?:string
Defined in: static.ts:39
Host of the already-running server to crawl. Default "127.0.0.1".
notFound?
optionalnotFound?:boolean
Defined in: static.ts:65
Probe and write the app's real _404 page to <outDir>/404.html. In the multi-app
apps form, the first app in the list is authoritative for this site-wide fallback.
Default true.
outDir?
optionaloutDir?:string
Defined in: static.ts:58
Directory to write the exported static site to. Default "dist/export".
paths?
optionalpaths?:string[]
Defined in: static.ts:50
Extra prefix-free route paths to crawl, beyond what appDir convention discovers.
Ignored when apps is given.
port
port:
number
Defined in: static.ts:37
Port of the already-running server to crawl.
routePrefix?
optionalroutePrefix?:string
Defined in: static.ts:47
URL prefix the React route is mounted at (e.g. "/app"). Prepended only to the
fetch URL — discovered/explicit route paths are always prefix-free. Ignored when apps
is given. Default "".