Dynamic Entry
Accessing your collections with on-demand compilation.
Usage
Enable dynamic mode on docs/doc collections, and import it from dynamic entry instead of server.
It offers the same output as server entry, while compiled properties have to be loaded via load() method.
Docs (Meta + Doc)
Doc
import { docs } from '@hanzo/docs-mdx:collections/dynamic';
import { loader } from '@hanzo/docs/core/source';
export const source = loader({
baseUrl: '/docs',
source: docs.toHanzo DocsSource(),
});import { blogPosts } from '@hanzo/docs-mdx:collections/dynamic';
import { toHanzo DocsSource } from '@hanzo/docs/mdx/runtime/server';
import { loader } from '@hanzo/docs/core/source';
export const blog = loader({
baseUrl: '/blog',
source: toHanzo DocsSource(blogPosts, []),
});How is this guide?
