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 42e6b99 commit 6f62011Copy full SHA for 6f62011
1 file changed
templates/nextjs-example/src/components/banner.tsx
@@ -1,7 +1,8 @@
1
import { FC } from "react";
2
3
export const Banner: FC = () => {
4
- const dev = process.env?.NODE_ENV === "development";
+ const dev =
5
+ typeof process !== "undefined" && process.env?.NODE_ENV === "development";
6
const satelliteId = process.env?.NEXT_PUBLIC_SATELLITE_ID;
7
const satelliteMissing =
8
satelliteId === undefined || satelliteId === "<DEV_SATELLITE_ID>";
0 commit comments