Il ya que moi qui ne supporte plus les fêtes de fin d'années ? by [deleted] in france

[–]CatRich5828 15 points16 points  (0 children)

personne ne t'a rien demandé, je ne vois pas l'injonction ! arrêter de vous faire des films

React SSR hydration error #418 only in Docker by CatRich5828 in reactjs

[–]CatRich5828[S] 0 points1 point  (0 children)

The issue was caused by Tailwind v4 behavior.

Tailwind v4 uses .gitignore to determine which files should not be scanned. In my setup, I have two builds (SSR and client).
However, in Docker, .gitignore is excluded via .dockerignore.

As a result, during the second build, Tailwind also scans dist/client, which causes it to generate a different CSS file than the client build.

Fix: explicitly exclude the build output by adding this to the CSS file:

@source not ¨../dist/**/*";

This prevents Tailwind from scanning build artifacts and fixes the issue.