CreateImageWizard: disable analytics for on-prem

This commit is contained in:
Gianluca Zuccarelli 2025-01-21 10:51:13 +00:00 committed by Sanne Raymaekers
parent e34ed8c230
commit d0a69082f3

View file

@ -45,12 +45,14 @@ export const CreateSaveAndBuildBtn = ({
const requestBody = await getBlueprintPayload();
setIsOpen(false);
analytics.track(`${AMPLITUDE_MODULE_NAME}-blueprintCreated`, {
module: AMPLITUDE_MODULE_NAME,
isPreview: isBeta(),
type: 'createBlueprintAndBuildImages',
packages: packages.map((pkg) => pkg.name),
});
if (!process.env.IS_ON_PREMISE) {
analytics.track(`${AMPLITUDE_MODULE_NAME}-blueprintCreated`, {
module: AMPLITUDE_MODULE_NAME,
isPreview: isBeta(),
type: 'createBlueprintAndBuildImages',
packages: packages.map((pkg) => pkg.name),
});
}
const blueprint =
requestBody &&
@ -136,12 +138,14 @@ export const CreateSaveButton = ({
const requestBody = await getBlueprintPayload();
setIsOpen(false);
analytics.track(`${AMPLITUDE_MODULE_NAME}-blueprintCreated`, {
module: AMPLITUDE_MODULE_NAME,
isPreview: isBeta(),
type: 'createBlueprint',
packages: packages.map((pkg) => pkg.name),
});
if (!process.env.IS_ON_PREMISE) {
analytics.track(`${AMPLITUDE_MODULE_NAME}-blueprintCreated`, {
module: AMPLITUDE_MODULE_NAME,
isPreview: isBeta(),
type: 'createBlueprint',
packages: packages.map((pkg) => pkg.name),
});
}
const blueprint =
requestBody &&