mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
fix dev port display in prod based on envvars
This commit is contained in:
parent
50ffd373a1
commit
0965a49e21
@ -7,7 +7,8 @@ import { getPublicEnvVar } from "../lib/env";
|
||||
export function DevelopmentPortDisplay() {
|
||||
const [isVisible, setIsVisible] = useState(true);
|
||||
const prefix = getPublicEnvVar("NEXT_PUBLIC_STACK_PORT_PREFIX");
|
||||
if (!prefix || !isVisible) return null;
|
||||
|
||||
if (!prefix || !isVisible || process.env.NODE_ENV === "production") return null;
|
||||
const color = ({
|
||||
"91": "#eee",
|
||||
"92": "#fff8e0",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user