fix: redirect root direcotory to dashboard

This commit is contained in:
Ephraim Atta-Duncan
2023-08-30 11:32:55 +00:00
committed by Mythie
parent ef79eb3ca4
commit 00143052fd

View File

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