diff --git a/docs/site/next.config.ts b/docs/site/next.config.ts index e34ebdb426b54..1d84419b29e06 100644 --- a/docs/site/next.config.ts +++ b/docs/site/next.config.ts @@ -141,6 +141,11 @@ const config: NextConfig = { destination: "/blog/:path*", permanent: true, }, + { + source: "/repo/docs/:slug*", + destination: "/docs/:slug*", + permanent: true, + }, // OpenAPI redirects (until we have more content) { source: "/docs/openapi", @@ -152,11 +157,6 @@ const config: NextConfig = { destination: "/repo/docs/openapi/artifacts/artifact-exists", permanent: false, }, - { - source: "/repo/docs/:slug*", - destination: "/docs/:slug*", - permanent: false, - }, { source: "/docs/getting-started/support-policy", destination: "/docs/support-policy",