diff --git a/packages/kbn-config/src/env.ts b/packages/kbn-config/src/env.ts index 64d147d9a4a8..99728f0dfc41 100644 --- a/packages/kbn-config/src/env.ts +++ b/packages/kbn-config/src/env.ts @@ -124,6 +124,7 @@ export class Env { version: pkg.version, dist: isKibanaDistributable, buildDate: isKibanaDistributable ? new Date(pkg.build.date) : new Date(), + buildFlavor: this.cliArgs.serverless ? 'serverless' : 'traditional', }); } } diff --git a/packages/kbn-config/src/types.ts b/packages/kbn-config/src/types.ts index dcb959f30cd0..f9038a1a7fd2 100644 --- a/packages/kbn-config/src/types.ts +++ b/packages/kbn-config/src/types.ts @@ -15,6 +15,7 @@ export interface PackageInfo { buildNum: number; buildSha: string; buildDate: Date; + buildFlavor: BuildFlavor; dist: boolean; } @@ -26,3 +27,5 @@ export interface EnvironmentMode { dev: boolean; prod: boolean; } + +export type BuildFlavor = 'serverless' | 'traditional';