diff --git a/infra/scripts/deploy-dev-to-prod.ps1 b/infra/scripts/deploy-dev-to-prod.ps1 index b65874e..25c1290 100644 --- a/infra/scripts/deploy-dev-to-prod.ps1 +++ b/infra/scripts/deploy-dev-to-prod.ps1 @@ -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) {