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:
@@ -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