Skip to content

Commit

Permalink
Merge pull request #1594 from Shkeats/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli authored Jul 17, 2023
2 parents 5cc2f5e + 0288c3a commit fc8eed1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
<directory>./tests/Sam</directory>
</testsuite>
</testsuites>
<php>
<env name="AWS_REGION" value="eu-west-1" force="true" />
</php>
</phpunit>
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 fc8eed1

Please sign in to comment.