Skip to content

Commit

Permalink
Add env wildcard for feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Oct 18, 2024
1 parent 44379e0 commit 0fc07bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Feature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export function Feature({
!(
match === undefined ||
variant === match ||
process.env[`RAZZLE_POSTHOG_FLAG_${flag}`]
process.env[`RAZZLE_POSTHOG_FLAG_${flag}`] ||
process.env[`RAZZLE_POSTHOG_FLAG_*`]
)
) {
return <>{fallback}</>;
Expand Down

0 comments on commit 0fc07bc

Please sign in to comment.