OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Promotes a draft tenant config to preview/testing state.
Goal
Enable validation and testing of draft configurations.
Context
Called when a draft passes initial checks and should be exposed to preview environments.
Source Definition
export const PromoteTenantConfigToPreviewCommand = defineCommand({
meta: {
key: 'appConfig.lifecycle.promoteToPreview',
version: '1.0.0',
description: 'Promotes a draft tenant config to preview/testing state.',
owners: [OwnersEnum.PlatformSigil],
tags: [TagsEnum.Hygiene, 'app-config'],
stability: StabilityEnum.Experimental,
goal: 'Enable validation and testing of draft configurations.',
context:
'Called when a draft passes initial checks and should be exposed to preview environments.',
},
io: {
input: PromotePreviewInput,
output: PromotePreviewOutput,
},
policy: LifecyclePolicy,
sideEffects: {
emits: [
{
ref: ConfigPromotedToPreviewEvent.meta,
when: 'after promotion to preview',
},
],
},
});