🐛 Fix redirect

This commit is contained in:
Luke Vella 2024-02-17 14:34:44 +08:00
parent 1f58d55e38
commit df9cc71002

View file

@ -57,7 +57,7 @@ export const middleware = withAuth(
nextUrl.pathname.startsWith("/login") ||
nextUrl.pathname.startsWith("/register") ||
nextUrl.pathname.startsWith("/auth") ||
nextUrl.pathname.startsWith("/p")
nextUrl.pathname.startsWith("/p/")
)
) {
// limit which pages guests can access for self-hosted instances