- Rename package to `goodgo-docs` - Add `rehype-slug` for automatic heading ID generation - Simplify TableOfContents component by removing manual ID logic
20 lines
536 B
JavaScript
20 lines
536 B
JavaScript
import createNextIntlPlugin from 'next-intl/plugin';
|
|
import createMDX from '@next/mdx';
|
|
|
|
const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts');
|
|
const withMDX = createMDX({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
// Use string for Turbopack compatibility (Next.js 16)
|
|
remarkPlugins: ['remark-gfm'],
|
|
rehypePlugins: ['rehype-slug'],
|
|
},
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx']
|
|
};
|
|
|
|
export default withNextIntl(withMDX(nextConfig));
|