feat: allow rank-gated housekeeping preview in production
This commit is contained in:
1 parent
1dc8d1d46f
commit
9af1e62655
7 files changed
+75
-12
No files matched your search
@@ -1,6 +1,10 @@
|
||||
export function isHousekeepingPreviewEnabled(input: {
|
||||
nodeEnv: "development" | "test" | "production";
|
||||
flag: boolean;
|
||||
hasProductionAccess?: boolean;
|
||||
}): boolean {
|
||||
return input.nodeEnv !== "production" && input.flag;
|
||||
return (
|
||||
input.flag &&
|
||||
(input.nodeEnv !== "production" || input.hasProductionAccess === true)
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user