From aa5050679c085adfcfa1a344bf5118d747de2bd4 Mon Sep 17 00:00:00 2001 From: Nathan Totten Date: Sun, 8 Oct 2023 19:08:32 -0400 Subject: [PATCH] redirect --- next.config.js | 7 +++++++ src/app/page.tsx | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 src/app/page.tsx diff --git a/next.config.js b/next.config.js index c655b40b..6164b3e6 100644 --- a/next.config.js +++ b/next.config.js @@ -13,6 +13,13 @@ module.exports = { }, ], }, + redirects: async () => [ + { + source: "/", + destination: "/docs", + statusCode: 308, + }, + ], webpack(config) { config.module.rules.push({ test: /\.svg$/i, diff --git a/src/app/page.tsx b/src/app/page.tsx deleted file mode 100644 index 8229a5a8..00000000 --- a/src/app/page.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { redirect } from "next/navigation"; - -export default async function Page() { - return redirect("/docs"); -}