fix(e2e): force IPv4 + 127.0.0.1 baseUrl to avoid localhost ::1 proxy hangups

This commit is contained in:
Kunal
2026-02-07 19:00:09 +00:00
parent f44f715e62
commit f2f1ac5bb2

View File

@@ -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 }}