From daf21ae4a2669f67f945a42924d15d8ea7f2e9ef Mon Sep 17 00:00:00 2001 From: alfredorubin96 Date: Wed, 29 Apr 2026 04:43:11 +0200 Subject: [PATCH 1/2] fix(build): resolve pg/tls client bundle error breaking E2E tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- app/e2e/global-setup.ts | 2 +- app/src/plugins/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/e2e/global-setup.ts b/app/e2e/global-setup.ts index c1bc402c..9635e88b 100644 --- a/app/e2e/global-setup.ts +++ b/app/e2e/global-setup.ts @@ -288,7 +288,7 @@ export default async function globalSetup() { } else { console.log("⏳ Building Next.js (production)..."); } - execSync("npx next build", { + execSync("npx next build --webpack", { cwd: appDir, stdio: "inherit", env: serverEnv, diff --git a/app/src/plugins/index.ts b/app/src/plugins/index.ts index f1a11967..1616c3aa 100644 --- a/app/src/plugins/index.ts +++ b/app/src/plugins/index.ts @@ -124,7 +124,7 @@ for (const t of CHART_TYPES) { // 2. Validate compatibleWith references actual connector types. // Uses the canonical CONNECTOR_TYPES from the connection package // so new connectors are automatically recognized. -import { CONNECTOR_TYPES as KNOWN_CONNECTOR_LIST } from "@neoboard/connection"; +import { CONNECTOR_TYPES as KNOWN_CONNECTOR_LIST } from "@neoboard/connection/connector-types"; const KNOWN_CONNECTORS = new Set(KNOWN_CONNECTOR_LIST); for (const type of pluginRegistry.getTypes()) { const plugin = pluginRegistry.get(type); From 8c6c640e00be6913cd1a077e8adaa45c284f0152 Mon Sep 17 00:00:00 2001 From: alfredorubin96 Date: Fri, 1 May 2026 10:59:09 +0200 Subject: [PATCH 2/2] ci: retrigger after release/2.0 type-error fix (#632) Co-Authored-By: Claude Opus 4.6 (1M context)