SSR / foldkit-ssr/vite

staticSite

function · packages/ssr/src/vite.ts:195

function staticSite(options: {
  readonly site: {
    readonly module: string
    readonly export?: string | undefined
  }
  readonly outDir?: string | undefined
}): Plugin

A static site as a Vite plugin: after the client bundle is written, the site module is evaluated, every path is rendered into the built shell, and the pages land in the output beside the sitemap and robots text. The config names the module, never application code, so nothing resolves through a stale build.