Skip to main content

Interface: StaticExportApp

Defined in: static.ts:14

One app's crawl configuration, for exporting a multi-app project in a single call.

Properties

appDir

appDir: string

Defined in: static.ts:16

Filesystem path to this app's directory, relative to cwd.


exclude?

optional exclude?: (string | RegExp)[]

Defined in: static.ts:29

Route paths to skip for this app (e.g. auth-gated/personalized pages that shouldn't be baked into a public static export). Matched against the prefix-free route path.


paths?

optional paths?: string[]

Defined in: static.ts:26

Extra prefix-free route paths to crawl for this app, beyond what appDir discovers.


routePrefix?

optional routePrefix?: string

Defined in: static.ts:24

URL prefix this app's React route is mounted at. In the multi-app apps form, also becomes this app's output subdirectory prefix, so routes from different apps can't collide in outDir and the exported site preserves each app's mount-relative structure (e.g. an admin app mounted at /admin writes to <outDir>/admin/...). Use "" — not "/" — for an app mounted at the site root; routePrefix is concatenated directly with each route (which already starts with /), so a "/" prefix produces a double slash. Default "".