From dd517dcf74f1649adadbf7c652e924fcdf065e24 Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Fri, 11 Oct 2024 10:15:15 -0400 Subject: [PATCH] fix: add more actionable info for missing primaryRegion (#195) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Eduardo Bouças --- src/store_factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store_factory.ts b/src/store_factory.ts index dfe1c13..420cfc2 100644 --- a/src/store_factory.ts +++ b/src/store_factory.ts @@ -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.', ) }