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"); -}