Skip to content

Commit 78b7da5

Browse files
authored
fix: use auto_install_required_extensions_v2 instead of auto_install_required_extensions (#6477)
Co-authored-by: Karin <=>
1 parent 064e3c4 commit 78b7da5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/config/src/utils/extensions/auto-install-extensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function handleAutoInstallExtensions({
4444
extensionApiBaseUrl,
4545
debug = false,
4646
}: AutoInstallOptions) {
47-
if (!featureFlags?.auto_install_required_extensions) {
47+
if (!featureFlags?.auto_install_required_extensions_v2) {
4848
return integrations
4949
}
5050
if (!accountId || !siteId || !token || !buildDir || offline) {

packages/config/tests/extensions/tests.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ test('Auto-install extensions: feature flag disabled returns integrations unchan
8080
token: 'test',
8181
mode: 'dev',
8282
featureFlags: {
83-
auto_install_required_extensions: false,
83+
auto_install_required_extensions_v2: false,
8484
},
8585
})
8686
.runConfigServer([SITE_INFO_DATA, TEAM_INSTALLATIONS_META_RESPONSE, FETCH_INTEGRATIONS_EMPTY_RESPONSE])
@@ -101,7 +101,7 @@ test('Auto-install extensions: gracefully handles missing package.json', async (
101101
token: 'test',
102102
mode: 'dev',
103103
featureFlags: {
104-
auto_install_required_extensions: true,
104+
auto_install_required_extensions_v2: true,
105105
},
106106
})
107107
.runConfigServer([SITE_INFO_DATA, TEAM_INSTALLATIONS_META_RESPONSE, FETCH_INTEGRATIONS_EMPTY_RESPONSE])
@@ -123,7 +123,7 @@ test('Auto-install extensions: correctly reads package.json from buildDir', asyn
123123
token: 'test',
124124
mode: 'dev',
125125
featureFlags: {
126-
auto_install_required_extensions: true,
126+
auto_install_required_extensions_v2: true,
127127
},
128128
})
129129
.runConfigServer([SITE_INFO_DATA, TEAM_INSTALLATIONS_META_RESPONSE, FETCH_INTEGRATIONS_EMPTY_RESPONSE])
@@ -161,7 +161,7 @@ test('Auto-install extensions: does not install when required packages are missi
161161
token: 'test',
162162
mode: 'dev',
163163
featureFlags: {
164-
auto_install_required_extensions: true,
164+
auto_install_required_extensions_v2: true,
165165
},
166166
})
167167
.runConfigServer([SITE_INFO_DATA, TEAM_INSTALLATIONS_META_RESPONSE, FETCH_INTEGRATIONS_EMPTY_RESPONSE])
@@ -187,7 +187,7 @@ test('Auto-install extensions: correctly reads package.json when no netlify.toml
187187
token: 'test',
188188
mode: 'dev',
189189
featureFlags: {
190-
auto_install_required_extensions: true,
190+
auto_install_required_extensions_v2: true,
191191
},
192192
})
193193
.runConfigServer([SITE_INFO_DATA, TEAM_INSTALLATIONS_META_RESPONSE, FETCH_INTEGRATIONS_EMPTY_RESPONSE])

0 commit comments

Comments
 (0)