Files
stats/apps/web/src/middleware.ts
Carl-Gerhard Lindesvärd f32dc4711a add 30 min active user histogram
2024-02-13 23:18:24 +01:00

13 lines
481 B
TypeScript

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
export default authMiddleware({
publicRoutes: ['/share/overview/:id', '/api/trpc(.*)'],
});
export const config = {
matcher: ['/((?!.+\\.[\\w]+$|_next).*)', '/', '/(api)(.*)'],
};