diff --git a/src/Components/ServerlessFramework.php b/src/Components/ServerlessFramework.php index 38ffb14..efd889a 100644 --- a/src/Components/ServerlessFramework.php +++ b/src/Components/ServerlessFramework.php @@ -127,6 +127,9 @@ private function retrieveOutputs(string $environment, array $awsCredentials): ar if ($url && str_starts_with($url, 'ANY - ')) { $url = substr($url, strlen('ANY - ')); } + if (!$url && isset($deployOutputs['endpoints']) && is_array($deployOutputs['endpoints'])) { + $url = reset($deployOutputs['endpoints']); + } // Special case for the `server-side-website` construct if (isset($deployOutputs['website']['url']) && is_string($deployOutputs['website']['url'])) { $url = $deployOutputs['website']['url'];