fix(build): resolve pg/tls client bundle error breaking E2E tests - #629
Conversation
Two fixes: 1. Import CONNECTOR_TYPES from @neoboard/connection/connector-types sub-path instead of the barrel export. The barrel unconditionally imports connector-registry → PostgresConnectionModule → pg, which requires Node.js tls module unavailable in the client bundle. 2. Add --webpack flag to E2E global-setup build command to match the project's build config and produce BUILD_ID for skip-build caching. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughTwo configuration adjustments: the Next.js build invocation in e2e setup now includes a Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|



Summary
plugins/index.tsimportedCONNECTOR_TYPESfrom@neoboard/connectionbarrel export, which transitively pulledpg(PostgreSQL driver) into the client bundle.pgrequires Node.jstlsmodule, which doesn't exist in browsers → build crash@neoboard/connection/connector-typessub-path export (pure constants, no server deps)next build --webpackmatching the project config, soBUILD_IDis produced for skip-build cachingTest plan
npm run buildsucceeds (was failing before)🤖 Generated with Claude Code
Summary by CodeRabbit