Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1593 WebsocketEvent getRegion() not returning correct region for custom domains #1594

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

Shkeats
Copy link
Contributor

@Shkeats Shkeats commented Jul 14, 2023

Fixes #1593 using the AWS_REGION env variable set in the lambda runtime.

@Shkeats Shkeats changed the title Fix #1593 WebsocketEvent getRegion() not returning correct region for custom domains Fix #1593 WebsocketEvent getRegion() not returning correct region for custom domains Jul 14, 2023
@mnapoli mnapoli added the bug label Jul 15, 2023
@mnapoli
Copy link
Member

mnapoli commented Jul 15, 2023

It seems the tests are failing, they might need some update.

@Shkeats
Copy link
Contributor Author

Shkeats commented Jul 15, 2023

@mnapoli updated with the env set for the test suite. I'm not sure if it's fine to assume that it's always set and never returning false in the real world, I think we do that elsewhere in the project for lambda environment variables like LAMBDA_TASK_ROOT though!

@mnapoli
Copy link
Member

mnapoli commented Jul 17, 2023

Thanks!

@mnapoli mnapoli merged commit fc8eed1 into brefphp:master Jul 17, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebsocketEvent::getRegion is incompatible with custom domain names.
2 participants