Skip to content

Commit

Permalink
Fix netlify nonce generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlinator committed Dec 13, 2021
1 parent 3899598 commit b2a35cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapter-netlify/files/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function handler(event) {
path,
query,
rawBody,
nonce: globalThis.GENERATE_NONCES && randomBytes(16).toString('base64')
nonce: /* eslint-disable-line no-undef */ GENERATE_NONCES && randomBytes(16).toString('base64')
});

if (!rendered) {
Expand Down

0 comments on commit b2a35cc

Please sign in to comment.