Skip to content

Commit 3883b3b

Browse files
committed
Fix dev port display
1 parent d0bc95b commit 3883b3b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

apps/dashboard/src/app/development-port-display.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
"use client";
22

3-
import { getNodeEnvironment } from "@stackframe/stack-shared/dist/utils/env";
43
import { useState } from "react";
54
import { getPublicEnvVar } from "../lib/env";
65

76

87
export function DevelopmentPortDisplay() {
98
const [isVisible, setIsVisible] = useState(true);
109
const prefix = getPublicEnvVar("NEXT_PUBLIC_STACK_PORT_PREFIX");
11-
if (!prefix || !isVisible || !getNodeEnvironment().includes("development")) return null;
10+
if (!prefix || !isVisible || !process.env.NODE_ENV.includes("development")) return null;
1211
const color = ({
1312
"91": "#eee",
1413
"92": "#fff8e0",

0 commit comments

Comments
 (0)