F+Foldkit Plus
HomeLearnPackagesComponentsDemosGitHub ↗

SSR

Guides

  • Overview
  • Why you would use it
  • The mental model
  • A first page
  • Serving pages
  • Checking what the browser will read
  • State the slice cannot carry
  • Resumable pages: answering before the runtime boots
  • Forms that work without scripts
  • When a page is refused
  • A reader's preferences in the first frame
  • Costs and limits
  • Lower-level API
  • The application in these examples

API

  • foldkit-ssr
  • foldkit-ssr/client
  • foldkit-ssr/vite

Open source, MIT
Foldkit 0.168 · Effect 4

SSR / foldkit-ssr/vite

EmittedFile

interface · packages/ssr/src/vite.ts:88

interface EmittedFile {
  readonly file: string
  readonly contents: Uint8Array | string
}

A file emit adds: its path in the output, and its contents.

Members

EmittedFile.file#

property · packages/ssr/src/vite.ts:89

readonly file: string

EmittedFile.contents#

property · packages/ssr/src/vite.ts:90

readonly contents: Uint8Array | string
Previousfoldkit-ssr/vite

On this page

  • file
  • contents

Edit on GitHub ↗

This site is a Foldkit Plus application, rendered at build time with foldkit-ssr. Its source

FoldkitEffectGitHub