Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix...

Carl-Gerhard Lindesvärdee598e3bddef
diff --git a/apps/dashboard/src/middleware.ts b/apps/dashboard/src/middleware.ts
index 1f8e7f61d..2d5a80fd9 100644
--- a/apps/dashboard/src/middleware.ts
+++ b/apps/dashboard/src/middleware.ts
@@ -14,7 +14,7 @@ const isPublicRoute = createRouteMatcher([
export default clerkMiddleware(
(auth, req) => {
- if (!process.env.MAINTENANCE_MODE && !req.url.includes('/maintenance')) {
+ if (process.env.MAINTENANCE_MODE && !req.url.includes('/maintenance')) {
return NextResponse.redirect(new URL('/maintenance', req.url), 307);
}
if (!isPublicRoute(req)) {