Skip to content

Commit 1990950

Browse files
committed
fix: add more actionable info for missing primaryRegion
When using a version of `netlify-cli` older than [17.23.4](netlify/cli#6589), you would encounter this error when using Blobs. The fix is pretty simple but not at all obvious.
1 parent 29893cb commit 1990950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store_factory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const getDeployStore = (input: GetDeployStoreOptions | string = {}): Stor
3030
// eslint-disable-next-line max-depth
3131
if (!context.primaryRegion) {
3232
throw new Error(
33-
'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.',
33+
'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 seeing this via the Netlify CLI, you may have an oudated version; run `npm install -g netlify-cli@latest` to update and try again.',
3434
)
3535
}
3636

0 commit comments

Comments
 (0)