From f9de17f780f651eb06627fc2335706f348208add Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 31 Aug 2022 11:31:25 +0400 Subject: [PATCH] Add /node.js to /nodejs redirect --- next.config.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 1113a5dcc..45d08cdc5 100644 --- a/next.config.js +++ b/next.config.js @@ -48,7 +48,18 @@ let nextConfig = { }); return config; - } + }, + + async redirects() { + return [ + { + source: '/node.js', + destination: '/nodejs', + permanent: true, + }, + ] + }, + }; nextConfig = withMDX(nextConfig);