Skip to content

fix(docker): copy workspace node_modules (prod crash-loop fix) - #633

Merged
LucasSantana-Dev merged 1 commit into
mainfrom
fix/dockerfile-copy-workspace-node-modules
Apr 15, 2026
Merged

LucasSantana-Dev merged 1 commit into
mainfrom
fix/dockerfile-copy-workspace-node-modules

Conversation

@LucasSantana-Dev

Copy link
Copy Markdown
Owner

Root cause of v2.6.123 ERR_MODULE_NOT_FOUND: Dockerfile only copied root /app/node_modules; workspace-pinned deps like lru-cache@10 live in packages/bot/node_modules/ and were absent from final image. Add COPY for both bot and backend workspace node_modules. Already applied manually on server — this is the upstream sync.

v2.6.123 crashed in production with ERR_MODULE_NOT_FOUND for lru-cache
because Dockerfile only copied root /app/node_modules from deps-production
stage. Workspace-pinned deps (lru-cache@10 in bot) live in
packages/bot/node_modules/ and were silently absent from the final image.
@vercel

vercel Bot commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lucky Ready Ready Preview, Comment Apr 15, 2026 3:25am

Request Review

@coderabbitai

coderabbitai Bot commented Apr 15, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@LucasSantana-Dev has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 49 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 6 minutes and 49 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0398bb2d-ca67-4264-8899-1d6b1f9531b6

📥 Commits

Reviewing files that changed from the base of the PR and between db33340 and e5354b5.

📒 Files selected for processing (1)
  • Dockerfile
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/dockerfile-copy-workspace-node-modules

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

Copy link
Copy Markdown

@LucasSantana-Dev
LucasSantana-Dev merged commit 1bc5b3a into main Apr 15, 2026
12 checks passed
@LucasSantana-Dev
LucasSantana-Dev deleted the fix/dockerfile-copy-workspace-node-modules branch April 15, 2026 03:32
LucasSantana-Dev added a commit that referenced this pull request May 13, 2026
)

v2.6.123 crashed in production with ERR_MODULE_NOT_FOUND for lru-cache
because Dockerfile only copied root /app/node_modules from deps-production
stage. Workspace-pinned deps (lru-cache@10 in bot) live in
packages/bot/node_modules/ and were silently absent from the final image.

This branch was successfully deployed

1 active deployment
Preview — e5354b58 Deployed Apr 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant