Skip to content

Commit

Permalink
Fix brefphp#1593 WebsocketEvent getRegion() not returning correct reg…
Browse files Browse the repository at this point in the history
…ion when using custom domain.
  • Loading branch information
Shkeats authored Jul 14, 2023
1 parent e390032 commit 9cfe6da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Event/ApiGateway/WebsocketEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function getStage(): string

public function getRegion(): string
{
[, , $region] = explode('.', $this->getDomainName(), 4);
return $region;
return getenv('AWS_REGION');
}
}

0 comments on commit 9cfe6da

Please sign in to comment.