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:
co-authored by
Cursor
parent
ae6ffc8a08
commit
4361178413
@@ -247,12 +247,14 @@ if (Get-StepEnabled $steps 'validateBuild') {
|
|||||||
$code = Invoke-Npm 'prod:build'
|
$code = Invoke-Npm 'prod:build'
|
||||||
if ($code -ne 0) { return $code }
|
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 = @()
|
$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.lanUrl) { $devCandidates += $cfg.verify.lanUrl }
|
||||||
if ($cfg.verify.devUrl -and ($devCandidates -notcontains $cfg.verify.devUrl)) { $devCandidates += $cfg.verify.devUrl }
|
if ($cfg.verify.devUrl) { $devCandidates += $cfg.verify.devUrl }
|
||||||
if (-not $devCandidates -or $devCandidates.Count -eq 0) {
|
$devCandidates = $devCandidates | Select-Object -Unique
|
||||||
$devCandidates = @('https://devgallery.mysuperlab.netcraze.pro/api/bounds')
|
|
||||||
}
|
|
||||||
|
|
||||||
$devOk = $false
|
$devOk = $false
|
||||||
foreach ($u in $devCandidates) {
|
foreach ($u in $devCandidates) {
|
||||||
|
|||||||
Reference in New Issue
Block a user