Skip to content

Commit 36c867d

Browse files
committed
insert when has bytes
1 parent 6481d6b commit 36c867d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/server/stream-utils/node-web-streams-helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ function createHeadInsertionTransformStream(
273273
}
274274
}
275275
// Insert the icon script at the end of the document.
276-
if (reinsertIcons) {
276+
if (reinsertIcons && hasBytes) {
277277
controller.enqueue(encoder.encode(createReinsertIconScript(nonce)))
278278
}
279279
},

0 commit comments

Comments
 (0)