From 446cf6642b459f8781024160d1ae2aa615ec9dcb Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Tue, 9 Jun 2026 10:40:31 +0000 Subject: [PATCH] fix(ci): bind vite preview to 127.0.0.1, not localhost (CAR-1218) The act runner resolves 'localhost' to ::1 (IPv6) and the preview server does not get a reachable IPv4 socket, so wait-on times out and the 'Start preview server' step fails the lighthouse job. Bind explicitly to 127.0.0.1 (IPv4). Refs CAR-1218, CAR-1302, CAR-1334 --- .gitea/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 26328ee..728b1d1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -91,6 +91,9 @@ jobs: npm install -g playwright npx playwright install --with-deps chromium - name: Start preview server + # CAR-1218: bind to 127.0.0.1 (IPv4) not localhost. The act runner + # resolves 'localhost' to ::1 (IPv6) and the preview server does not + # get a reachable IPv4 socket, so wait-on times out. run: | npx vite preview --host 127.0.0.1 --port 4173 & npx wait-on http://127.0.0.1:4173/ --timeout 30000