From 3832ce2c80a58dd652ca995c01e527e2077bd4cf Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Wed, 30 Aug 2023 11:32:55 +0000 Subject: [PATCH] fix: redirect root direcotory to dashboard --- apps/web/src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts index e480b2c43..5e18ee590 100644 --- a/apps/web/src/middleware.ts +++ b/apps/web/src/middleware.ts @@ -4,7 +4,7 @@ import { getToken } from 'next-auth/jwt'; export default async function middleware(req: NextRequest) { if (req.nextUrl.pathname === '/') { - const redirectUrl = new URL('/documents', req.url); + const redirectUrl = new URL('/dashboard', req.url); return NextResponse.redirect(redirectUrl); }