2023-10-07 13:14:06 -07:00
|
|
|
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
|
2023-10-08 17:25:08 -07:00
|
|
|
export default authMiddleware({
|
|
|
|
publicRoutes: ["/api/uploadthing"]
|
|
|
|
});
|
2023-10-07 13:14:06 -07:00
|
|
|
|
|
|
|
export const config = {
|
|
|
|
matcher: ['/((?!.+\\.[\\w]+$|_next).*)', '/', '/(api|trpc)(.*)'],
|
|
|
|
};
|
|
|
|
|