dev-preprod-prod logic
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user