fix: redirect root direcotory to dashboard

This commit is contained in:
Ephraim Atta-Duncan
2023-08-30 11:32:55 +00:00
parent fd36e39a38
commit 3832ce2c80

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