Skip to content

fix: make DB2 dev workflow work on Windows#71

Merged
huyplb merged 1 commit into
mainfrom
fix/windows-db2-dev-api
Jul 14, 2026
Merged

fix: make DB2 dev workflow work on Windows#71
huyplb merged 1 commit into
mainfrom
fix/windows-db2-dev-api

Conversation

@huyplb

@huyplb huyplb commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Use cross-env in web dev scripts so the API backend starts on Windows (fixes ECONNREFUSED / empty JSON errors when connecting to DB2)
  • Call setupDb2ClientEnv() before ibm_db driver detection on Windows
  • Improve API error messages when the backend is unreachable
  • Align frontend DB2 connection string with core (Authentication=SERVER, schema required)

Test plan

  • npx vitest run — 260 passed
  • cd apps/web && npx tsc --noEmit
  • On Windows: npm run dev from repo root — confirm [api] and [web] both start
  • On Windows: DB2 credential → Load Schema succeeds when API is running

Made with Cursor

Use cross-env for dev scripts so the API starts on Windows cmd, call
setupDb2ClientEnv before ibm_db driver checks, and surface clearer errors
when the backend is unreachable.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 14, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_a6755b7c-f98c-4ddc-af24-4a37f3443ea3)

@huyplb huyplb merged commit 007f393 into main Jul 14, 2026
4 of 7 checks passed
@huyplb huyplb deleted the fix/windows-db2-dev-api branch July 14, 2026 21:26
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