added middleware for clerks
This commit is contained in:
parent
33136e797f
commit
39e2caf39a
11
middleware.ts
Normal file
11
middleware.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { authMiddleware } from "@clerk/nextjs";
|
||||
|
||||
// This example protects all routes including api/trpc routes
|
||||
// Please edit this to allow other routes to be public as needed.
|
||||
// See https://clerk.com/docs/references/nextjs/auth-middleware for more information about configuring your middleware
|
||||
export default authMiddleware({});
|
||||
|
||||
export const config = {
|
||||
matcher: ['/((?!.+\\.[\\w]+$|_next).*)', '/', '/(api|trpc)(.*)'],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user