Skip to content

Commit

Permalink
fix: latest version of getDeployStore accepts argument of type string…
Browse files Browse the repository at this point in the history
… as well
  • Loading branch information
mrstork committed Sep 17, 2024
1 parent 25d61e6 commit 8d30845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/run/regional-blob-store.cts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { getDeployStore, Store } from '@netlify/blobs'
const fetchBeforeNextPatchedIt = globalThis.fetch

export const getRegionalBlobStore = (args: Parameters<typeof getDeployStore>[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,
Expand Down

0 comments on commit 8d30845

Please sign in to comment.