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