We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0bc95b commit 3883b3bCopy full SHA for 3883b3b
1 file changed
apps/dashboard/src/app/development-port-display.tsx
@@ -1,14 +1,13 @@
1
"use client";
2
3
-import { getNodeEnvironment } from "@stackframe/stack-shared/dist/utils/env";
4
import { useState } from "react";
5
import { getPublicEnvVar } from "../lib/env";
6
7
8
export function DevelopmentPortDisplay() {
9
const [isVisible, setIsVisible] = useState(true);
10
const prefix = getPublicEnvVar("NEXT_PUBLIC_STACK_PORT_PREFIX");
11
- if (!prefix || !isVisible || !getNodeEnvironment().includes("development")) return null;
+ if (!prefix || !isVisible || !process.env.NODE_ENV.includes("development")) return null;
12
const color = ({
13
"91": "#eee",
14
"92": "#fff8e0",
0 commit comments