Skip to content

Commit

Permalink
Improve URL detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Oct 5, 2024
1 parent af525ae commit 6730fba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Components/ServerlessFramework.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 6730fba

Please sign in to comment.