mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-16 07:26:35 +00:00
Fix old /docs redirects
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import nextMDX from '@next/mdx'
|
||||
import { remarkPlugins } from './mdx/remark.mjs'
|
||||
import { rehypePlugins } from './mdx/rehype.mjs'
|
||||
import { recmaPlugins } from './mdx/recma.mjs'
|
||||
import {remarkPlugins} from './mdx/remark.mjs'
|
||||
import {rehypePlugins} from './mdx/rehype.mjs'
|
||||
import {recmaPlugins} from './mdx/recma.mjs'
|
||||
|
||||
const withMDX = nextMDX({
|
||||
options: {
|
||||
@@ -22,6 +22,20 @@ const nextConfig = {
|
||||
experimental: {
|
||||
scrollRestoration: true,
|
||||
},
|
||||
redirects: async () => {
|
||||
return [
|
||||
{
|
||||
source: '/docs',
|
||||
destination: '/',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
source: '/docs/:path*',
|
||||
destination: '/:path*',
|
||||
permanent: true,
|
||||
}
|
||||
]
|
||||
},
|
||||
rewrites: async () => {
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user