SSR / foldkit-ssr/vite

generateStaticSite

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

function generateStaticSite<
  Model,
  Fields extends Schema.Struct.Fields,
  Message = any,
>(
  site: StaticSite<Model, Fields, Message>,
): Effect.Effect<BuiltSite, RenderError | ResumeUnsafe>

Renders a static site: every path through SSR.generate, one page per path in order, with the sitemap and robots text the options ask for. A build id must never be a secret, and two deployments must never share one; empty is refused with the deployment's name missing.