Skip to content

Commit 1325b55

Browse files
committed
Fix Vercel adapter nonce generation
1 parent 960e2ce commit 1325b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/adapter-vercel/files/entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default async (req, res) => {
2424
path: pathname,
2525
query: searchParams,
2626
rawBody: body,
27-
nonce: globalThis.GENERATE_NONCES && randomBytes(16).toString('hex')
27+
nonce: /* eslint-disable-line no-undef */ GENERATE_NONCES && randomBytes(16).toString('hex')
2828
});
2929

3030
if (rendered) {

0 commit comments

Comments
 (0)