From d197d086c889e2f2da2364406fc921bee0ac58da Mon Sep 17 00:00:00 2001 From: Hank Stoever Date: Fri, 17 May 2024 08:23:31 -0700 Subject: [PATCH] feat: redirect /docs to /docs/intro --- docs-site/next.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs-site/next.config.mjs b/docs-site/next.config.mjs index 71cd74a..8bf0a4c 100644 --- a/docs-site/next.config.mjs +++ b/docs-site/next.config.mjs @@ -5,6 +5,15 @@ import { createContentlayerPlugin, withContentlayer } from 'next-contentlayer'; const nextConfig = { reactStrictMode: true, swcMinify: true, + redirects() { + return [ + { + source: '/docs', + destination: '/docs/intro', + // permanent: true, + }, + ]; + }, }; // const withContentlayer = createContentlayerPlugin({});