From 80e5eb3a267b2b8849f81b94970350b2e1d45e8d Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 22 Nov 2023 19:17:27 +0000 Subject: [PATCH] feat: redirect root to boards --- next.config.mjs | 10 ++++++++++ src/app/page.tsx | 6 +----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 27f10c6c..3cb5e494 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/require-await */ /** * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful * for Docker builds. @@ -17,6 +18,15 @@ const config = { }, ], }, + redirects: async () => { + return [ + { + source: "/", + destination: "/boards", + permanent: true, + }, + ]; + }, }; export default config; diff --git a/src/app/page.tsx b/src/app/page.tsx index 2eae4325..7bff2ad8 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,3 @@ export default function Home() { - return ( -
-

Kan

-
- ); + return
; }