Skip to content

Commit

Permalink
Add CDN as possible hydration error cause
Browse files Browse the repository at this point in the history
CDN optimizations can cause hydration errors since they modify the HTML before serving it
  • Loading branch information
vamcs committed Jul 10, 2023
1 parent 98cc99d commit c9e9fef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions errors/react-hydration-error.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Hydration errors can occur from:
4. [Browser extensions](https://github.com/facebook/react/issues/24430) modifying the HTML
5. Incorrectly configured [CSS-in-JS libraries](https://nextjs.org/docs/app/building-your-application/styling/css-in-js)
1. Ensure your code is following [our official examples](https://github.com/vercel/next.js/tree/canary/examples)
6. CDNs modifying the HTML before serving your app, for example, Cloudflare's "Auto Minify"

## Possible Ways to Fix It

Expand Down

0 comments on commit c9e9fef

Please sign in to comment.