We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52cf92 commit 58b146eCopy full SHA for 58b146e
flags.ts
@@ -1,11 +1,6 @@
1
-"use server";
2
-
3
import { flag } from "flags/next";
4
5
-export const weatherWidgetFlag = flag({
+export const weatherWidgetFlag = flag<boolean>({
6
key: "weather-widget",
7
- decide() {
8
- // Enable the weather widget for 50% of visitors
9
- return Math.random() > 0.5;
10
- },
+ decide: () => process.env.NEXT_PUBLIC_FEATURE_X_ENABLED === "true",
11
});
0 commit comments