From dff459e2eae599690315ed66e1f2a5c283bcb95b Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Wed, 27 May 2026 00:01:36 -0700 Subject: [PATCH] fix(web): add missing postcss.config.mjs + copy into Docker build Without postcss.config.mjs, @tailwindcss/postcss never ran during 'next build', producing a CSS bundle with only @font-face rules (33KB) and zero Tailwind utility classes. The UI rendered as unstyled HTML (black background, white text, no spacing). - Add web/postcss.config.mjs wiring @tailwindcss/postcss (matches the pattern used by sibling repos like ChronoMind) - Copy postcss.config.mjs into the web Docker build stage so 'pnpm run build' can resolve it --- web/Dockerfile | 1 + web/postcss.config.mjs | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 web/postcss.config.mjs diff --git a/web/Dockerfile b/web/Dockerfile index 40b3f57..40185cf 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -17,6 +17,7 @@ RUN pnpm install --ignore-scripts --lockfile=false COPY web/next.config.ts ./next.config.ts COPY web/tsconfig.json ./tsconfig.json COPY web/next-env.d.ts ./next-env.d.ts +COPY web/postcss.config.mjs ./postcss.config.mjs COPY web/src/ ./src/ COPY shared/ ../shared/ diff --git a/web/postcss.config.mjs b/web/postcss.config.mjs new file mode 100644 index 0000000..61e3684 --- /dev/null +++ b/web/postcss.config.mjs @@ -0,0 +1,7 @@ +const config = { + plugins: { + "@tailwindcss/postcss": {}, + }, +}; + +export default config;