Skip to Content
🎉 Nextra 4.0 is released. dimaMachina is looking for a new job or consulting .
APInextra

nextra Function

Nextra is a Next.js plugin that allows you to create Markdown-based content with ease.

Signature

Parameters:
NameTypeDefault
nextraConfigNextraConfig
Returns:
(nextConfig?: NextConfig | undefined) => NextConfig

Example

next.config.mjs
import nextra from 'nextra' // Set up Nextra with its configuration const withNextra = nextra({ // ... Add Nextra-specific options here }) // Export the final Next.js config with Nextra included export default withNextra({ // ... Add regular Next.js options here })