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 a0b4b31 commit cf0cfe5Copy full SHA for cf0cfe5
.gitignore
@@ -41,4 +41,5 @@ yarn-error.log*
41
next-env.d.ts
42
43
tests/reports
44
-playwright-report
+playwright-report
45
+.env*.local
src/app/page.tsx
@@ -1,10 +1,14 @@
1
-import Link from 'next/link';
+import Link from "next/link";
2
+import WeatherWidget from "./weather-widget";
3
+
4
+export default async function Home() {
5
+ const isWeatherFeatureEnabled = process.env.WEATHER_WIDGET_ENABLED === "true";
6
-export default function Home() {
7
return (
8
<div className="container">
9
<h1>Welcome to Next.js + Playwright</h1>
10
<Link href="/form">Go to Form</Link>
11
+ {isWeatherFeatureEnabled && <WeatherWidget />}
12
</div>
13
);
14
}
0 commit comments