Skip to content

Commit

Permalink
fix: use env object
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt committed Jan 27, 2024
1 parent cfffbd4 commit 224f75f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/global/featureFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ export const feature = (mode: FeatureFlags, options: FeatureOptions = {}): boole
};

// Bypass feature flag in dev mode if `alwaysShowOnDev` is true
if (
alwaysShowOnDev &&
(import.meta.env.MODE === "development" || import.meta.env.MODE === "test")
) {
if (alwaysShowOnDev && (env.isDevelopment || env.isTesting)) {
return true;
}

Expand Down

0 comments on commit 224f75f

Please sign in to comment.