dev-preprod-prod logic

This commit is contained in:
2026-03-01 14:39:25 +03:00
parent 165f91b399
commit b7960344e0
13 changed files with 754 additions and 70 deletions

View File

@@ -136,6 +136,8 @@ export const selectedEnvironmentStore = derived(
export const isProductionContextStore = derived(
selectedEnvironmentStore,
($selectedEnvironment) => Boolean($selectedEnvironment?.is_production),
($selectedEnvironment) =>
String($selectedEnvironment?.stage || "").toUpperCase() === "PROD" ||
Boolean($selectedEnvironment?.is_production),
);
// [/DEF:environmentContext:Store]