Skip to content

Commit f0cd4e7

Browse files
committed
chore: Remove now undefined experimentalRegion setting
1 parent 50f332d commit f0cd4e7

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/run/next.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export async function getMockedRequestHandlers(...args: Parameters<typeof getReq
9696
} catch (error) {
9797
// only try to get .html files from the blob store
9898
if (typeof path === 'string' && path.endsWith('.html')) {
99-
const store = getRegionalBlobStore()
99+
const store = getRegionalBlobStore({})
100100
const relPath = relative(resolve('.next/server/pages'), path)
101101
const file = await store.get(await encodeBlobKey(relPath))
102102
if (file !== null) {

src/run/regional-blob-store.cts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
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,
129
})
1310
}

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)