Back to feed
Dev.to
Dev.to
7/24/2026
Why Some Next.js Sites Show Empty HTML in Page Source (It's Not a Bug)

Why Some Next.js Sites Show Empty HTML in Page Source (It's Not a Bug)

Short summary

Some Next.js sites show minimal HTML in page source because they use dynamic rendering: CSR for real users to reduce server load, and full SSR for search engine crawlers. Bot detection tools like Botd (by FingerprintJS) run at the edge to identify crawlers and serve them fully rendered content. This hybrid approach is intentional, not a bug.

  • Next.js sites may use dynamic rendering: CSR for users, SSR for bots
  • Botd by FingerprintJS enables accurate edge-level bot detection
  • Hybrid SSR/CSR strategies optimize both performance and SEO

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more