Skip to content

Fix: prevent environment hijacking/crash in multi-site setups#2175

Open
Dana-Johnson wants to merge 1 commit into
TryGhost:mainfrom
Dana-Johnson:fix-missing-config
Open

Fix: prevent environment hijacking/crash in multi-site setups#2175
Dana-Johnson wants to merge 1 commit into
TryGhost:mainfrom
Dana-Johnson:fix-missing-config

Conversation

@Dana-Johnson

Copy link
Copy Markdown

The Issue:
In multi-site environments, the CLI's checkEnvironment shortcut can globally hijack the process environment. If one registered site is missing a config.production.json while others are running, the CLI may attempt to force a global development mode, leading to crashes or state pollution.

The Fix:
Modified checkEnvironment in lib/instance.js to only allow the automatic development-mode fallback if the CLI is managing a single instance. In multi-site configurations, the CLI now bypasses this shortcut, maintaining environment stability across the stack.

@coderabbitai

coderabbitai Bot commented May 17, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Dana-Johnson has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 39 minutes and 36 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ 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: 467963cb-575f-47b4-8f29-7be2bb66db73

📥 Commits

Reviewing files that changed from the base of the PR and between 6d5b9db and f01347c.

📒 Files selected for processing (1)
  • lib/instance.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

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.

1 participant