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
23
lib/arcjet.ts
Normal file
23
lib/arcjet.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import arcjet, {
|
||||
detectBot,
|
||||
fixedWindow,
|
||||
protectSignup,
|
||||
sensitiveInfo,
|
||||
shield,
|
||||
slidingWindow,
|
||||
} from '@arcjet/next';
|
||||
|
||||
export {
|
||||
detectBot,
|
||||
fixedWindow,
|
||||
protectSignup,
|
||||
sensitiveInfo,
|
||||
shield,
|
||||
slidingWindow,
|
||||
};
|
||||
|
||||
export default arcjet({
|
||||
key: process.env.ARCJET_KEY!,
|
||||
characteristics: ['ip.src', 'http.host'],
|
||||
rules: [],
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue