mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
fix: redirect root direcotory to dashboard
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user