Skip to content

Commit 3d6d334

Browse files
committed
chore: replace references to experimental region
1 parent 64084b0 commit 3d6d334

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/run/regional-blob-store.cts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { getDeployStore, Store } from '@netlify/blobs'
1+
import { getDeployStore, GetWithMetadataOptions, Store } from '@netlify/blobs'
22

33
const fetchBeforeNextPatchedIt = globalThis.fetch
44

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 => {
76
return getDeployStore({
8-
...options,
7+
...args,
98
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',
1210
})
1311
}

tests/utils/helpers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export const startMockBlobStore = async (ctx: FixtureTestContext) => {
5959
ctx.blobStore = getDeployStore({
6060
apiURL: `http://${ctx.blobStoreHost}`,
6161
deployID: ctx.deployID,
62-
experimentalRegion: 'context',
6362
siteID: ctx.siteID,
6463
token: BLOB_TOKEN,
6564
})
@@ -74,7 +73,6 @@ export const getBlobEntries = async (ctx: FixtureTestContext) => {
7473
: getDeployStore({
7574
apiURL: `http://${ctx.blobStoreHost}`,
7675
deployID: ctx.deployID,
77-
experimentalRegion: 'context',
7876
siteID: ctx.siteID,
7977
token: BLOB_TOKEN,
8078
})

0 commit comments

Comments
 (0)