From 8d3084593b85f5297976f0905077b3cad6e4e40b Mon Sep 17 00:00:00 2001 From: Mateusz Bocian Date: Tue, 17 Sep 2024 15:04:24 -0400 Subject: [PATCH] fix: latest version of getDeployStore accepts argument of type string as well --- src/run/regional-blob-store.cts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/run/regional-blob-store.cts b/src/run/regional-blob-store.cts index d3be12684b..350237472b 100644 --- a/src/run/regional-blob-store.cts +++ b/src/run/regional-blob-store.cts @@ -3,8 +3,9 @@ import { getDeployStore, Store } from '@netlify/blobs' const fetchBeforeNextPatchedIt = globalThis.fetch export const getRegionalBlobStore = (args: Parameters[0] = {}): Store => { + const options = typeof args === 'string' ? { name: args } : args return getDeployStore({ - ...args, + ...options, fetch: fetchBeforeNextPatchedIt, experimentalRegion: process.env.USE_REGIONAL_BLOBS?.toUpperCase() === 'TRUE' ? 'context' : undefined,