Technical notes on web development, DevOps, and AI integration.
1 article
A missing globals.css import after moving the root layout into app/[locale] stripped every page of styling — while the build stayed green.
TL;DR: An i18n refactor moved the Next.js root layout into app/[locale]/layout.tsx and accidentally dropped the globals.css import. Without that file Tailwind v4 never loaded, so the site rendered as unstyled HTML while the build stayed green. The fix was re-adding the import, a reminder to visually check pages and grep for globals.css after layout changes.