From 913473e52f3d047709233bea725933ea96f67a24 Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Wed, 29 Jun 2022 18:55:20 +0800 Subject: [PATCH] Update next.config.js --- apps/www/next.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/www/next.config.js b/apps/www/next.config.js index 6eddef54761..0c277b47855 100644 --- a/apps/www/next.config.js +++ b/apps/www/next.config.js @@ -48,6 +48,12 @@ module.exports = withMDX({ source: '/docs', destination: `${process.env.NEXT_PUBLIC_DOCS_URL}`, }, + { + // redirect /docs/ + // trailing slash caused by docusaurus issue with multizone + source: '/docs/', + destination: `${process.env.NEXT_PUBLIC_DOCS_URL}`, + }, { source: '/docs/:path*', destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,