Skip to content

Commit 114e97d

Browse files
refactor: update weatherWidgetFlag decision logic to use NEXT_PUBLIC_FEATURE_X_ENABLED environment variable
1 parent 65611c5 commit 114e97d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/app/flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { flag } from "flags/next";
33
export const weatherWidgetFlag = flag<boolean>({
44
key: "weather-widget",
55
description: "Enable the weather widget for users.",
6-
decide: () => process.env.WEATHER_WIDGET_ENABLED === "true",
6+
decide: () => process.env.NEXT_PUBLIC_FEATURE_X_ENABLED === "true",
77
});

src/app/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { weatherWidgetFlag } from "../../flags";
32
import WeatherWidget from "./weather-widget";
43

0 commit comments

Comments
 (0)