10 lines
304 B
TypeScript
10 lines
304 B
TypeScript
import { convexAuthNextjsMiddleware } from "@convex-dev/auth/nextjs/server";
|
|
|
|
export default convexAuthNextjsMiddleware();
|
|
|
|
export const config = {
|
|
// The following matcher runs middleware on all routes
|
|
// except static assets.
|
|
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
|
|
};
|