Skip to content

Commit 4fc6654

Browse files
committed
remove default region
1 parent 126514d commit 4fc6654

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,10 +639,6 @@ async function buildSingleConfig (configName, singleUserConfig, commonConfig, in
639639
}
640640
if (manifest && manifest.database) {
641641
config.database = { ...manifest.database }
642-
// set default region if auto-provision is true and no region is set
643-
if (config.database['auto-provision'] === true && !config.database.region) {
644-
config.database.region = 'amer'
645-
}
646642
}
647643
if (commonConfig?.aio?.project) {
648644
config.project = commonConfig.aio.project

test/index.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,8 +1126,7 @@ application:
11261126
})
11271127
const config = await appConfig.load()
11281128
expect(config.all.application.database).toEqual({
1129-
'auto-provision': true,
1130-
region: 'amer'
1129+
'auto-provision': true
11311130
})
11321131
})
11331132

0 commit comments

Comments
 (0)