import { withClerkMiddleware } from "@clerk/nextjs/server";
import { NextResponse } from "next/server";
export default withClerkMiddleware(() => {
console.log("Running Clerk middleware");
return NextResponse.next();
});
// Stop Middleware running on static files
export const config = {
matcher: "/((?!_next/image|_next/static|favicon.ico).*)",
};
import { withClerkMiddleware } from "@clerk/nextjs/server";
import { NextResponse } from "next/server";
export default withClerkMiddleware(() => {
console.log("Running Clerk middleware");
return NextResponse.next();
});
// Stop Middleware running on static files
export const config = {
matcher: "/((?!_next/image|_next/static|favicon.ico).*)",
};