From 2d97d53b115671f0be9cdb0469e8a071324e9a8d Mon Sep 17 00:00:00 2001 From: Vladyslav Date: Wed, 4 Mar 2026 16:11:22 +0100 Subject: [PATCH] devops --- packages/manager/src/constants/API_ENDPOINTS.ts | 1 + packages/manager/src/constants/API_TOKENS.ts | 1 + packages/manager/src/constants/APPLICATION_MODE.ts | 1 + scripts/play.ts | 6 ++++-- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/manager/src/constants/API_ENDPOINTS.ts b/packages/manager/src/constants/API_ENDPOINTS.ts index 1a3a81e6be..641987f8f4 100644 --- a/packages/manager/src/constants/API_ENDPOINTS.ts +++ b/packages/manager/src/constants/API_ENDPOINTS.ts @@ -106,6 +106,7 @@ If you didn't intend to run Slice Machine this way, stop it immediately and unse case APPLICATION_MODE.DevTools: case APPLICATION_MODE.MarketingTools: + case APPLICATION_MODE.Devops: case APPLICATION_MODE.Platform: { return { PrismicWroom: `https://${process.env.SM_ENV}-wroom.com/`, diff --git a/packages/manager/src/constants/API_TOKENS.ts b/packages/manager/src/constants/API_TOKENS.ts index 1e96404815..3559ac6c96 100644 --- a/packages/manager/src/constants/API_TOKENS.ts +++ b/packages/manager/src/constants/API_TOKENS.ts @@ -11,6 +11,7 @@ export const API_TOKENS: APITokens = (() => { case APPLICATION_MODE.DevTools: case APPLICATION_MODE.MarketingTools: case APPLICATION_MODE.Platform: + case APPLICATION_MODE.Devops: case APPLICATION_MODE.Staging: return { SegmentKey: "Ng5oKJHCGpSWplZ9ymB7Pu7rm0sTDeiG", diff --git a/packages/manager/src/constants/APPLICATION_MODE.ts b/packages/manager/src/constants/APPLICATION_MODE.ts index 26084fb0ce..442d02af5c 100644 --- a/packages/manager/src/constants/APPLICATION_MODE.ts +++ b/packages/manager/src/constants/APPLICATION_MODE.ts @@ -3,6 +3,7 @@ export const APPLICATION_MODE = { DevTools: "dev-tools", MarketingTools: "marketing-tools", Platform: "platform", + Devops: "devops", Staging: "staging", Production: "production", } as const; diff --git a/scripts/play.ts b/scripts/play.ts index 37159fcdf7..fc5cb9a176 100644 --- a/scripts/play.ts +++ b/scripts/play.ts @@ -48,6 +48,7 @@ type Args = { | "production" | "development" | "dev-tools" + | "devops" | "marketing-tools" | "platform"; @@ -109,7 +110,7 @@ Usage: Options: --new Create a new playground --framework, -f Specify the playground's framework (next, nuxt, sveltekit) (default: ${DEFAULT_FRAMEWORK}) - --environment, -e Specify the playground's environment (staging, dev-tools, marketing-tools, platform, production, development) (default: ${DEFAULT_ENVIRONMENT}) + --environment, -e Specify the playground's environment (staging, dev-tools, marketing-tools, platform, devops, production, development) (default: ${DEFAULT_ENVIRONMENT}) --no-start Do not start Slice Machine and the website --prefix, -p Specify the prefix for the playground name (default: ${DEFAULT_PREFIX}) --dry-run, -n Show what would have happened @@ -130,6 +131,7 @@ Arguments: "development", "dev-tools", "marketing-tools", + "devops", "platform", ].includes(args.environment) ) { @@ -338,7 +340,7 @@ async function createPlayground( { dryRun: options.dryRun }, ); } else if ( - ["dev-tools", "marketing-tools", "platform"].includes(options.environment!) + ["dev-tools", "marketing-tools", "devops", "platform"].includes(options.environment!) ) { await updateSliceMachineConfig( dir,