mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-16 15:36:36 +00:00
44 lines
897 B
JavaScript
44 lines
897 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'
|
|
|
|
const withMDX = nextMDX({
|
|
options: {
|
|
remarkPlugins,
|
|
// rehypeSlug,
|
|
rehypePlugins,
|
|
recmaPlugins,
|
|
providerImportSource: '@mdx-js/react',
|
|
},
|
|
})
|
|
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
assetPrefix: '/docs-static',
|
|
reactStrictMode: true,
|
|
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
|
|
experimental: {
|
|
scrollRestoration: true,
|
|
},
|
|
rewrites: async () => {
|
|
return [
|
|
{
|
|
source: '/',
|
|
destination: '/introduction',
|
|
},
|
|
{
|
|
source: '/api',
|
|
destination: '/ipa/introduction',
|
|
},
|
|
{
|
|
source: '/api/:path*',
|
|
destination: '/ipa/:path*',
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
export default withMDX(nextConfig)
|