Skip to content

Commit 8d30845

Browse files
committed
fix: latest version of getDeployStore accepts argument of type string as well
1 parent 25d61e6 commit 8d30845

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/run/regional-blob-store.cts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { getDeployStore, Store } from '@netlify/blobs'
33
const fetchBeforeNextPatchedIt = globalThis.fetch
44

55
export const getRegionalBlobStore = (args: Parameters<typeof getDeployStore>[0] = {}): Store => {
6+
const options = typeof args === 'string' ? { name: args } : args
67
return getDeployStore({
7-
...args,
8+
...options,
89
fetch: fetchBeforeNextPatchedIt,
910
experimentalRegion:
1011
process.env.USE_REGIONAL_BLOBS?.toUpperCase() === 'TRUE' ? 'context' : undefined,

0 commit comments

Comments
 (0)