Installation
Simply clone our template (or create a new project on Dhub).
The template uses Portal plugin for NextJs to render the MDX files, so your next config will be wrapper in the withPortal function .
next.config.mjs
1
2
3
4
5
6
7
8
9
import { withPortal } from '@portal-dev/core'
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
transpilePackages: ['@portal-dev/ui'],
}
export default withPortal(nextConfig)