mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Added Arcjet Security and Updated Caching on Cards
This commit is contained in:
parent
06aac8524a
commit
611adcddff
9 changed files with 261 additions and 19 deletions
|
@ -1,7 +1,15 @@
|
|||
import { clerkMiddleware } from '@clerk/nextjs/server';
|
||||
import arcjet, { shield } from './lib/arcjet';
|
||||
import { createMiddleware } from '@arcjet/next';
|
||||
|
||||
export default clerkMiddleware();
|
||||
const aj = arcjet.withRule(
|
||||
shield({
|
||||
mode: 'LIVE',
|
||||
})
|
||||
);
|
||||
|
||||
export const config = {
|
||||
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'],
|
||||
};
|
||||
|
||||
export default createMiddleware(aj, clerkMiddleware());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue