Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Mar 11, 2022
1 parent 4465c53 commit 9c77164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/server/base-server.ts
Expand Up @@ -1177,7 +1177,7 @@ export default abstract class Server {
if (opts.supportsDynamicHTML === true) {
const isBotRequest = isBot(req.headers['user-agent'] || '')
const isSupportedDocument =
(components.Document as any)?.__next_internal_document ||
!!(components.Document as any)?.__next_internal_document ||
typeof components.Document?.getInitialProps !== 'function'

// Disable dynamic HTML in cases that we know it won't be generated,
Expand Down

0 comments on commit 9c77164

Please sign in to comment.