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