Prefer dev LAN bounds in validateBuild

Avoid relying on dev HTTPS when it can return transient 504 pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Danila Khodjaef
2026-07-08 15:52:45 +03:00
co-authored by Cursor
parent ae6ffc8a08
commit 4361178413
+6 -4
View File
@@ -247,12 +247,14 @@ if (Get-StepEnabled $steps 'validateBuild') {
$code = Invoke-Npm 'prod:build'
if ($code -ne 0) { return $code }
# Always prefer the dev host on LAN (192.168.10.70) because the HTTPS dev domain
# can return transient 504 HTML pages during load.
$devCandidates = @()
if ($cfg.verify.devLanUrl) { $devCandidates += $cfg.verify.devLanUrl }
$devCandidates += 'http://192.168.10.70:5173/api/bounds'
if ($cfg.verify.lanUrl) { $devCandidates += $cfg.verify.lanUrl }
if ($cfg.verify.devUrl -and ($devCandidates -notcontains $cfg.verify.devUrl)) { $devCandidates += $cfg.verify.devUrl }
if (-not $devCandidates -or $devCandidates.Count -eq 0) {
$devCandidates = @('https://devgallery.mysuperlab.netcraze.pro/api/bounds')
}
if ($cfg.verify.devUrl) { $devCandidates += $cfg.verify.devUrl }
$devCandidates = $devCandidates | Select-Object -Unique
$devOk = $false
foreach ($u in $devCandidates) {