fix(show): delete show
This commit is contained in:
@@ -46,9 +46,9 @@ export default async function middleware(req: NextRequest) {
|
||||
}
|
||||
}
|
||||
// 5. Redirect to /dashboard if the user is authenticated
|
||||
if (isPublicRoute && session && !path.startsWith("/show")) {
|
||||
if (isPublicRoute && session && !path.startsWith("/management")) {
|
||||
return NextResponse.redirect(
|
||||
new URL(`${process.env.NEXT_PUBLIC_BASE_PATH}/show`, req.nextUrl)
|
||||
new URL(`${process.env.NEXT_PUBLIC_BASE_PATH}/management`, req.nextUrl)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user