File-based source
Scan build output directories for HTML files
Overview
The file-based source scans a build output directory for HTML files and turns them into page candidates. It is the default source for most static or pre-rendered sites. See Index sources for how sources fit into the pipeline.
Options (CLI)
| Option | Type | Default | Description |
|---|---|---|---|
projectDir | string | process.cwd() | Project root directory. |
sourceDir | string | auto-detected | Build output directory to scan. |
glob | string | **/*.{html,htm} | Glob pattern for HTML files. |
Example (CLI)
peam \
--source fileBased --projectDir . --sourceDir dist --glob "**/*.html" \
--store fileBased --indexPath .peam/index.jsonNotes
- The source auto-detects output folders like
.next,dist, andbuildifsourceDiris not provided. - It normalizes paths by stripping common build prefixes and removing
.html//index.