Added Arcjet Security and Updated Caching on Cards

This commit is contained in:
Ahmad 2024-12-27 18:00:27 -05:00
parent 06aac8524a
commit 611adcddff
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
9 changed files with 261 additions and 19 deletions

23
lib/arcjet.ts Normal file
View 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: [],
});