init: pusat bantuan tumbuhin
This commit is contained in:
30
next.config.mjs
Normal file
30
next.config.mjs
Normal file
@@ -0,0 +1,30 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user