Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔨 Fix middleware config

Luke Vella177daa2aa1bb
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index ecf2c12ab..55d9698cf 100644
--- a/apps/web/src/middleware.ts
+++ b/apps/web/src/middleware.ts
@@ -22,7 +22,7 @@ export async function middleware(req: NextRequest) {
);
const isProtectedPathDueToRequiredAuth =
- process.env.AUTH_REQUIRED &&
+ process.env.AUTH_REQUIRED === "true" &&
!publicPaths.some((publicPath) =>
req.nextUrl.pathname.startsWith(publicPath),
);