Manifest
Generate manifest for production builds
Usage
Enable it from global config.
During a production build (next build
), Adalt MDX will output a manifest file in .source/manifest.json
.
You can use it to set up search indexes, like configuring Algolia Search.
What is It?
The manifest file contains the compiled info of collection entries.
This includes their frontmatter, structuredData
and toc
(Table of Contents).
You can check the type definitions to see all available properties.
Read Manifest
You can read the file after the build is finished.
Example
To integrate with Algolia Search:
frontmatter
is untyped. With type check enabled, you need to cast them to the correct type.
Last updated on