From f2f1ac5bb23867a10a54c7159c4322e148fd6308 Mon Sep 17 00:00:00 2001 From: Kunal Date: Sat, 7 Feb 2026 19:00:09 +0000 Subject: [PATCH] fix(e2e): force IPv4 + 127.0.0.1 baseUrl to avoid localhost ::1 proxy hangups --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2331717b..56eaaf96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,7 +121,10 @@ jobs: - name: Run Cypress E2E env: NEXT_TELEMETRY_DISABLED: "1" - # Cypress exposes env vars prefixed with CYPRESS_ via Cypress.env(). + # Prefer IPv4 to avoid localhost -> ::1 issues when Next binds only to 127.0.0.1. + NODE_OPTIONS: "--dns-result-order=ipv4first" + # Force Cypress to use 127.0.0.1 as baseUrl (Cypress only auto-loads CYPRESS_* into Cypress.env()). + CYPRESS_baseUrl: "http://127.0.0.1:3000" # Vars for shared Clerk OTP helper (frontend/cypress/support/commands.ts) CYPRESS_CLERK_ORIGIN: ${{ vars.CYPRESS_CLERK_ORIGIN }} CYPRESS_CLERK_TEST_EMAIL: ${{ vars.CYPRESS_CLERK_TEST_EMAIL }}