Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which problem is this pull request solving?
In #158, we've added experimental support for configurable regions to deploy-scoped stores (i.e. stores created with
getDeployStore()
). It works as follows:getDeployStore({ experimentalRegion: "auto" })
to instruct the API to choose the same region as the one configured for functionsgetDeployStore({ experimentalRegion: "context" })
to instruct the CDN to choose the region defined in the environmentThis PR introduces the following changes:
experimentalRegion
parameter is removedregion
parameter is added to thegetDeployStore
method, which takes the name of a regionregion
parameter, that will be usedauto
region
parameter, that will be usedTechnically, this is a breaking change because
getDeployStore()
now selects the functions region by default instead of the default region, accessing the same store using different versions of the Blobs client might generate different reasons, since they may be pointing to different regions.Should you want to update your Blobs client but keep accessing a deploy-scoped store that has been created with an older version, you can use
getDeployStore({ region: "us-east-2" })
to ensure you're using the right region.