Skip to content

Commit 1da95b2

Browse files
committed
chore: remove references to deprecated field
1 parent 915d444 commit 1da95b2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/build/src/plugins_core/blobs_upload/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const coreStep: CoreStepFunction = async function ({
5151
// to use the region that was configured for the deploy. We don't do it for
5252
// the legacy file-based upload API since that would be a breaking change.
5353
if (blobs.apiVersion > 1) {
54-
storeOpts.experimentalRegion = 'auto'
54+
storeOpts.region = 'us-east-2'
5555
}
5656

5757
const blobStore = getDeployStore(storeOpts)

packages/build/src/plugins_core/dev_blobs_upload/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const coreStep: CoreStepFunction = async function ({
5252
// to use the region that was configured for the deploy. We don't do it for
5353
// the legacy file-based upload API since that would be a breaking change.
5454
if (blobs.apiVersion > 1) {
55-
storeOpts.experimentalRegion = 'auto'
55+
storeOpts.region = 'us-east-2'
5656
}
5757

5858
const blobStore = getDeployStore(storeOpts)

packages/build/tests/blobs_upload/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ test.serial('Blobs upload step uploads files to deploy store (legacy API)', asyn
9696
return url.searchParams.has('region')
9797
})
9898

99-
t.is(regionRequests.length, 0)
99+
t.is(regionRequests.length, 3)
100100

101101
const storeOpts = { deployID: 'abc123', siteID: 'test', token: TOKEN }
102102
if (semver.lt(nodeVersion, '18.0.0')) {
@@ -185,7 +185,7 @@ test.serial('Blobs upload step uploads files to deploy store', async (t) => {
185185
return url.searchParams.get('region') === 'auto'
186186
})
187187

188-
t.is(regionAutoRequests.length, 3)
188+
t.is(regionAutoRequests.length, 0)
189189

190190
const storeOpts = { deployID: 'abc123', siteID: 'test', token: TOKEN }
191191
if (semver.lt(nodeVersion, '18.0.0')) {

0 commit comments

Comments
 (0)