Prerender source

Index prerendered routes from framework output

Overview

The prerender source indexes framework-provided prerender manifests. It expects an array of prerendered pages (or a JSON string) and maps them to file paths.

It is primarily used by withPeam on Next.js 15+ for automatic page discovery, but you can also supply it directly via the CLI.

Options (CLI)

OptionTypeDefaultDescription
prerendersPrerenderPage[] | stringPrerender pages list or JSON string.
projectDirstringProject root directory.

Example (CLI)

peam \
  --source prerender --projectDir . --prerenders ./out/prerender-manifest.json \
  --store fileBased --indexPath .peam/index.json

Notes

  • If a fallback file path ends with /.html (Next.js 15), it is normalized to /index.html.
  • Paths are derived from prerender entries rather than filesystem scanning.

On this page

GitHubEdit this page on GitHub