fix(devcontainer): prevent PORT env from leaking to Next.js#427
Conversation
Remove `export PORT` from the Makefile so the Go server's port is not broadcast to all child processes (Next.js reads PORT and would bind the same port as the Go server). Pass PORT explicitly only to `go run` and use `env -u PORT` to strip it from the Next.js dev process. Update the conductor.json setup script to seed the dev database and activist data after installing deps. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 45 minutes and 22 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
export PORTfrom the Makefile so Next.js doesn't inherit the Go server's port and attempt to bind it, causing anaddress already in usecrash on startupenv -u PORT pnpm devto explicitly stripPORTfrom the Next.js process (needed because Conductor injectsPORTas a shell env var, which persists regardless of the Makefile export)PORT=$(PORT)explicitly only togo run main.goconductor.jsonsetup script to seed the dev database (make dev_db) and activist data (adb seed activists) after installing depsTest plan
address already in useerror🤖 Generated with Claude Code