Revert "Make /activity public so signed-out UI renders"

This reverts commit 5419f01d54.
This commit is contained in:
Ishaan (OpenClaw)
2026-02-08 13:57:16 +00:00
parent 7896cfcdc6
commit 5fde02165a

View File

@@ -9,9 +9,7 @@ const isClerkEnabled = () =>
); );
// Public routes must include Clerk sign-in paths to avoid redirect loops. // Public routes must include Clerk sign-in paths to avoid redirect loops.
// Also keep top-level UI routes like /activity public so the app can render a signed-out state const isPublicRoute = createRouteMatcher(["/sign-in(.*)"]);
// (the page itself shows a SignIn button; API routes remain protected elsewhere).
const isPublicRoute = createRouteMatcher(["/sign-in(.*)", "/activity(.*)"]);
export default isClerkEnabled() export default isClerkEnabled()
? clerkMiddleware(async (auth, req) => { ? clerkMiddleware(async (auth, req) => {