nextra Function
Nextra is a Next.js plugin that allows you to create Markdown-based content with ease.
Signature
Parameters:| Name | Type | Default | 
|---|---|---|
nextraConfig | NextraConfig | 
(nextConfig?: NextConfig | undefined) => NextConfigExample
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
})