import { createMDX } from 'fumadocs-mdx/next'; const withMDX = createMDX(); /** @type {import('next').NextConfig} */ const config = { reactStrictMode: true, // Untuk Docker / Dokploy: image kecil, jalankan dengan `node server.js` output: 'standalone', async rewrites() { return [ // Dashboard Decap CMS (file statis di public/admin/index.html) { source: '/admin', destination: '/admin/index.html' }, ]; }, async redirects() { return [ // Contoh redirect jika slug artikel diganti setelah terbit: // { // source: '/docs/memulai/slug-lama', // destination: '/docs/memulai/slug-baru', // permanent: true, // }, ]; }, }; export default withMDX(config);