Files
pos-system/apps/web-docs/next.config.mjs
Ho Ngoc Hai 9884947953 Refactor TOC to use rehype-slug
- Rename package to `goodgo-docs`
- Add `rehype-slug` for automatic heading ID generation
- Simplify TableOfContents component by removing manual ID logic
2026-01-08 10:19:26 +07:00

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));