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 bf4bced commit 433e4d7Copy full SHA for 433e4d7
src/app/weather-widget.tsx
@@ -1,7 +1,6 @@
1
-import { getFlag } from "../flags";
2
-
3
export default async function WeatherWidget() {
4
- const isEnabled = await getFlag("WeatherWidgetEnabled");
+ const res = await fetch("/api/flags");
+ const { isEnabled } = await res.json();
5
6
if (!isEnabled) {
7
return null; // Do not render the widget if the flag is disabled
0 commit comments