Node.js
在 Node.js 运行时访问内容。
设置
确保在 ESM 环境中运行脚本。
import { register } from 'node:module';
register('fumadocs-mdx/node/loader', import.meta.url);
// accessing content
const { source } = await import('./lib/source');
console.log(source.getPages());How is this guide?
Last updated on
