Skip to content

Commit b31a457

Browse files
authored
fix nonce error with remix dev server (#774)
1 parent 606ce73 commit b31a457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default async function handleRequest(...args: DocRequestArgs) {
4444
? 'onAllReady'
4545
: 'onShellReady'
4646

47-
const nonce = String(loadContext.cspNonce) ?? undefined
47+
const nonce = loadContext.cspNonce?.toString() ?? ''
4848
return new Promise(async (resolve, reject) => {
4949
let didError = false
5050
// NOTE: this timing will only include things that are rendered in the shell

0 commit comments

Comments
 (0)