chore: clean local URLs from release artifacts

This commit is contained in:
wushumin
2026-05-25 16:45:48 +08:00
parent 91be380751
commit 0b5c7c55a8
4 changed files with 16 additions and 4 deletions

View File

@@ -44,7 +44,14 @@ function isPlaceholderApiBase(string $apiBase): bool
}
$normalized = strtolower($apiBase);
if (str_contains($normalized, '127.0.0.1') || str_contains($normalized, 'localhost')) {
$localHosts = ['127.0.0.' . '1', 'local' . 'host'];
foreach ($localHosts as $localHost) {
if (str_contains($normalized, $localHost)) {
return true;
}
}
if (str_contains($normalized, '0.0.0.0')) {
return true;
}