Skip to content

Commit 46756c2

Browse files
committed
chore: use nullish coalescing operator for arcjet fallback
1 parent 6926768 commit 46756c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/Arcjet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import arcjet, { shield } from '@arcjet/next';
44
export default arcjet({
55
// Get your site key from https://launch.arcjet.com/Q6eLbRE
66
// Use `process.env` instead of Env to reduce bundle size in middleware
7-
key: process.env.ARCJET_KEY || '',
7+
key: process.env.ARCJET_KEY ?? '',
88
// Identify the user by their IP address
99
characteristics: ['ip.src'],
1010
rules: [

0 commit comments

Comments
 (0)