Chore: Wrap custom configuration in development environment check (#70833)

This commit is contained in:
Esteban Beltran 2023-06-28 14:39:23 +02:00 committed by GitHub
parent 7237766b69
commit bb18fd719a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,9 @@ export class GrafanaBootConfig implements GrafanaConfig {
systemDateFormats.update(this.dateFormats);
}
overrideFeatureTogglesFromUrl(this);
if (this.buildInfo.env === 'development') {
overrideFeatureTogglesFromUrl(this);
}
if (this.featureToggles.disableAngular) {
this.angularSupportEnabled = false;