mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53:37 +00:00
15 lines
366 B
TypeScript
15 lines
366 B
TypeScript
import { clerkMiddleware } from '@clerk/nextjs/server';
|
|
import arcjet, { shield } from './lib/arcjet';
|
|
import { createMiddleware } from '@arcjet/next';
|
|
|
|
const aj = arcjet.withRule(
|
|
shield({
|
|
mode: 'LIVE',
|
|
})
|
|
);
|
|
|
|
export const config = {
|
|
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'],
|
|
};
|
|
|
|
export default createMiddleware(aj, clerkMiddleware());
|