StaticSite.config
property · packages/ssr/src/vite.ts:64
readonly config: Resolved | ((path: string) => Resolved | Promise<Resolved>)SSR / foldkit-ssr/vite
interface · packages/ssr/src/vite.ts:54
interface StaticSite<
Model,
Fields extends Schema.Struct.Fields,
Message,
Resolved = ResumableConfig<Model, Message>,
> {
readonly config: Resolved | ((path: string) => Resolved | Promise<Resolved>)
readonly plan: ResumePlan<Model, Fields>
readonly buildId?: string | undefined
readonly origin: string
readonly paths:
| ReadonlyArray<SitePath>
| (() => ReadonlyArray<SitePath> | Promise<ReadonlyArray<SitePath>>)
readonly template: string
readonly head?: Head | undefined
readonly flags?: ((path: string) => unknown) | undefined
readonly files?: 'directory' | 'flat' | undefined
readonly sitemap?: boolean | undefined
readonly robots?: boolean | undefined
}What a static site is: everything SSR.generate takes, plus where its
pages land. config may read the path (a site whose Model is prepared
per page satisfies and returns its own config for it); paths may close
over what the site serves (a thunk that seeds and lists, evaluated when
the build runs). template is the built shell the pages are rendered
into; files is the host's layout; sitemap and robots write their
files from the generated pages.
StaticSite.configproperty · packages/ssr/src/vite.ts:64
readonly config: Resolved | ((path: string) => Resolved | Promise<Resolved>)StaticSite.planproperty · packages/ssr/src/vite.ts:65
readonly plan: ResumePlan<Model, Fields>StaticSite.buildIdproperty · packages/ssr/src/vite.ts:66
readonly buildId?: string | undefinedStaticSite.originproperty · packages/ssr/src/vite.ts:67
readonly origin: stringStaticSite.pathsproperty · packages/ssr/src/vite.ts:68
readonly paths:
| ReadonlyArray<SitePath>
| (() => ReadonlyArray<SitePath> | Promise<ReadonlyArray<SitePath>>)StaticSite.templateproperty · packages/ssr/src/vite.ts:70
readonly template: stringStaticSite.headproperty · packages/ssr/src/vite.ts:71
readonly head?: Head | undefinedStaticSite.flagsproperty · packages/ssr/src/vite.ts:72
readonly flags?: ((path: string) => unknown) | undefinedStaticSite.filesproperty · packages/ssr/src/vite.ts:73
readonly files?: 'directory' | 'flat' | undefinedStaticSite.sitemapproperty · packages/ssr/src/vite.ts:74
readonly sitemap?: boolean | undefinedStaticSite.robotsproperty · packages/ssr/src/vite.ts:75
readonly robots?: boolean | undefined