mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 07:21:20 +00:00
feat: Use Clerk as middleware
This commit is contained in:
parent
91cd7f05d0
commit
0346e43440
1 changed files with 12 additions and 0 deletions
12
middleware.ts
Normal file
12
middleware.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { withClerkMiddleware } from "@clerk/nextjs/server";
|
||||
import { NextResponse } from "next/server";
|
||||
import type { NextRequest } from "next/server";
|
||||
|
||||
export default withClerkMiddleware((_req: NextRequest) => {
|
||||
return NextResponse.next();
|
||||
});
|
||||
|
||||
// Stop Middleware running on static files and public folder
|
||||
export const config = {
|
||||
matcher: ["/((?!_next|_static|_vercel|[\\w-]+\\.\\w+).*)"],
|
||||
};
|
Loading…
Reference in a new issue