File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
- import { getDeployStore , Store } from '@netlify/blobs'
1
+ import { getDeployStore , GetWithMetadataOptions , Store } from '@netlify/blobs'
2
2
3
3
const fetchBeforeNextPatchedIt = globalThis . fetch
4
4
5
- export const getRegionalBlobStore = ( args : Parameters < typeof getDeployStore > [ 0 ] = { } ) : Store => {
6
- const options = typeof args === 'string' ? { name : args } : args
5
+ export const getRegionalBlobStore = ( args : GetWithMetadataOptions = { } ) : Store => {
7
6
return getDeployStore ( {
8
- ...options ,
7
+ ...args ,
9
8
fetch : fetchBeforeNextPatchedIt ,
10
- experimentalRegion :
11
- process . env . USE_REGIONAL_BLOBS ?. toUpperCase ( ) === 'TRUE' ? 'context' : undefined ,
9
+ region : process . env . USE_REGIONAL_BLOBS ?. toUpperCase ( ) === 'TRUE' ? undefined : 'us-east-2' ,
12
10
} )
13
11
}
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ export const startMockBlobStore = async (ctx: FixtureTestContext) => {
59
59
ctx . blobStore = getDeployStore ( {
60
60
apiURL : `http://${ ctx . blobStoreHost } ` ,
61
61
deployID : ctx . deployID ,
62
- experimentalRegion : 'context' ,
63
62
siteID : ctx . siteID ,
64
63
token : BLOB_TOKEN ,
65
64
} )
@@ -74,7 +73,6 @@ export const getBlobEntries = async (ctx: FixtureTestContext) => {
74
73
: getDeployStore ( {
75
74
apiURL : `http://${ ctx . blobStoreHost } ` ,
76
75
deployID : ctx . deployID ,
77
- experimentalRegion : 'context' ,
78
76
siteID : ctx . siteID ,
79
77
token : BLOB_TOKEN ,
80
78
} )
You can’t perform that action at this time.
0 commit comments