fix(auth): enable Clerk middleware and make /sign-in public
This commit is contained in:
2
frontend/src/middleware.ts
Normal file
2
frontend/src/middleware.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default } from "./proxy";
|
||||
export { config } from "./proxy";
|
||||
@@ -9,7 +9,7 @@ const isClerkEnabled = () =>
|
||||
);
|
||||
|
||||
// Public routes must include Clerk sign-in paths to avoid redirect loops.
|
||||
const isPublicRoute = createRouteMatcher(["/sign-in(.*)"]);
|
||||
const isPublicRoute = createRouteMatcher(["/sign-in(.*)"]);
|
||||
|
||||
export default isClerkEnabled()
|
||||
? clerkMiddleware((auth, req) => {
|
||||
|
||||
Reference in New Issue
Block a user