Skip to content

Commit

Permalink
fix: add more actionable info for missing primaryRegion (#195)
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo Bouças <[email protected]>
  • Loading branch information
serhalp and eduardoboucas authored Oct 11, 2024
1 parent 1d37e13 commit dd517dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const getDeployStore = (input: GetDeployStoreOptions | string = {}): Stor
// eslint-disable-next-line max-depth
if (!context.primaryRegion) {
throw new Error(
'When accessing a deploy store, the Netlify Blobs client needs to be configured with a region, and one was not found in the environment. To manually set the region, set the `region` property in the `getDeployStore` options.',
'When accessing a deploy store, the Netlify Blobs client needs to be configured with a region, and one was not found in the environment. To manually set the region, set the `region` property in the `getDeployStore` options. If you are using the Netlify CLI, you may have an outdated version; run `npm install -g netlify-cli@latest` to update and try again.',
)
}

Expand Down

0 comments on commit dd517dc

Please sign in to comment.