fix(show): delete show

This commit is contained in:
2026-02-05 18:19:45 +08:00
parent 04611e98e3
commit 0280929c64
8 changed files with 38 additions and 76 deletions

View File

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