WebArena-ShopSmart / middleware.ts.disabled
Jack
Initial release
1067b6f
import { authMiddleware } from "@clerk/nextjs";
export default authMiddleware({
publicRoutes: [
"/",
"/collection(.*)",
"/product(.*)",
"/quickview(.*)",
"/cart(.*)",
"/products(.*)",
"/auth(.*)",
"/checkout(.*)",
"/api/stripe/(.*)",
"/api/uploadthing",
],
});
export const config = {
matcher: ["/((?!.*\\..*|_next).*)"],
};
export const runtime = "nodejs";