File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export async function getMockedRequestHandlers(...args: Parameters<typeof getReq
96
96
} catch ( error ) {
97
97
// only try to get .html files from the blob store
98
98
if ( typeof path === 'string' && path . endsWith ( '.html' ) ) {
99
- const store = getRegionalBlobStore ( )
99
+ const store = getRegionalBlobStore ( { } )
100
100
const relPath = relative ( resolve ( '.next/server/pages' ) , path )
101
101
const file = await store . get ( await encodeBlobKey ( relPath ) )
102
102
if ( file !== null ) {
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 ,
12
9
} )
13
10
}
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