Skip to content

Commit

Permalink
Fix Vercel adapter nonce generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlinator committed Dec 13, 2021
1 parent b2a35cc commit 51a0ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapter-vercel/files/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async (req, res) => {
path: pathname,
query: searchParams,
rawBody: body,
nonce: globalThis.GENERATE_NONCES && randomBytes(16).toString('hex')
nonce: /* eslint-disable-line no-undef */ GENERATE_NONCES && randomBytes(16).toString('hex')
});

if (rendered) {
Expand Down

0 comments on commit 51a0ba1

Please sign in to comment.