Skip to content

Conversation

@pasevin
Copy link
Collaborator

@pasevin pasevin commented Jan 5, 2026

Summary

Fixes broken CSS styling in staging where responsive classes (xl:block, xl:hidden, xl:flex) were missing.

Root Cause

In Docker builds, .npmrc is excluded via .dockerignore. This means pnpm's shamefully-hoist=true setting doesn't apply, and packages are installed in packages/builder/node_modules/ instead of the root node_modules/.

The @source directives in index.css only scanned the root location, so Tailwind couldn't find the @openzeppelin packages containing the responsive classes.

Fix

Scan both possible node_modules locations:

@source "../../../node_modules/@openzeppelin";  /* Root - local dev */
@source "../node_modules/@openzeppelin";        /* Builder's - Docker */

Also Reverts

Reverts the complex ECS task definition update logic from PR #294. The simple --force-new-deployment is sufficient since the task definition uses :latest tag.

Testing

  • Built Docker image locally with --no-cache
  • Verified CSS output contains xl:block, xl:hidden, xl:flex, xl:flex-col

Reverts the complex task definition update logic from PR #294.
The simple --force-new-deployment is sufficient since the task
definition uses :latest tag.
In Docker builds, .npmrc is excluded via .dockerignore, so pnpm's
shamefully-hoist=true doesn't apply. Packages install in
packages/builder/node_modules/ instead of root.

Now scans both locations:
- Root node_modules (local dev with shameful hoisting)
- Builder's node_modules (Docker builds without .npmrc)
@pasevin pasevin requested a review from a team as a code owner January 5, 2026 22:10
@pasevin pasevin merged commit 00618e6 into main Jan 5, 2026
11 checks passed
@pasevin pasevin deleted the fix/tailwind-docker-source-paths branch January 5, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants