Back to Nextra

API

docs/app/api/page.mdx

2.0.0-beta.6497 B
Original Source

import { Callout, Cards } from 'nextra/components' import { MDXRemote } from 'nextra/mdx-remote' import { createIndexPage } from 'nextra/page-map' import { pageMap } from './[name]/page'

API

<Callout type="info"> This API reference is automatically generated from the catch-all route file `/api/[name]/page.tsx` using the new [Nextra `<TSDoc />` component](/docs/built-ins/tsdoc). </Callout>

<MDXRemote compiledSource={await createIndexPage(pageMap)} components={{ Cards }} />