mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-15 23:16:36 +00:00
46 lines
989 B
JavaScript
46 lines
989 B
JavaScript
import nextMDX from '@next/mdx'
|
|
import { remarkPlugins } from './mdx/remark.mjs'
|
|
import { rehypePlugins } from './mdx/rehype.mjs'
|
|
import { recmaPlugins } from './mdx/recma.mjs'
|
|
import rehypeSlug from "rehype-slug";
|
|
|
|
const withMDX = nextMDX({
|
|
options: {
|
|
remarkPlugins,
|
|
// rehypeSlug,
|
|
rehypePlugins,
|
|
recmaPlugins,
|
|
providerImportSource: '@mdx-js/react',
|
|
},
|
|
})
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
|
|
experimental: {
|
|
scrollRestoration: true,
|
|
},
|
|
redirects: async () => {
|
|
return [
|
|
{
|
|
source: '/',
|
|
destination: '/docs/introductions',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/docs',
|
|
destination: '/docs/introductions',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/ipa',
|
|
destination: '/ipa/introductions',
|
|
permanent: true,
|
|
},
|
|
]
|
|
}
|
|
}
|
|
|
|
export default withMDX(nextConfig)
|