Expand description
ISR manifest emitter — dist/.ssg/manifest.json + raw content KV
payloads under dist/.ssg/content/.
Runs as an after_compile plugin, but ONLY when the build opted
into ISR via --isr (issue #546 AC9 — without the flag the plugin
is not registered and the build stays byte-identical to v0.0.43).
Behaviour:
- Walks the content directory for
.mdfiles. - For each markdown file, parses frontmatter to look for
isr.s_maxage/isr.swroverrides. - Derives the published URL using the existing slug rules.
- Emits a
ManifestEntrylisting the markdown source + the relevant templates assources, with a sha256 over their bytes. - Writes
dist/.ssg/manifest.jsonand copies the raw sources intodist/.ssg/content/so the deploy step can upload to KV.
Structs§
- IsrManifest
Plugin after_compileplugin that emits the ISR manifest + raw KV payloads. Off by default; enabled by the--isrflag.
Constants§
- CONTENT_
RELATIVE_ DIR - Subdirectory inside
dist/.ssg/that holds raw source payloads destined for KV / Edge Config upload. - MANIFEST_
RELATIVE_ PATH - Subdirectory inside
dist/.ssg/that holds the manifest.
Functions§
- build_
manifest - Builds a
Manifestby walkingcontent_dirfor.mdfiles and pairing each with the layout templates it would render against.