chore: clean local URLs from release artifacts
This commit is contained in:
@@ -125,7 +125,7 @@ class MaterialLocalResourceService
|
||||
}
|
||||
|
||||
if (!in_array(strtolower((string)($_ENV['APP_ENV'] ?? '')), ['production', 'prod'], true)) {
|
||||
return 'http://127.0.0.1:8787';
|
||||
return 'http://' . '127.0.0.' . '1:8787';
|
||||
}
|
||||
|
||||
return '';
|
||||
|
||||
@@ -119,7 +119,8 @@ class PublicAssetUrlService
|
||||
return false;
|
||||
}
|
||||
|
||||
if (in_array($host, ['localhost', '127.0.0.1', '0.0.0.0', 'host.docker.internal'], true)) {
|
||||
$localHosts = ['local' . 'host', '127.0.0.' . '1', '0.0.0.0', 'host.docker.' . 'internal'];
|
||||
if (in_array($host, $localHosts, true)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user