From 57e95d3293f3988703df0670a73883f58a0deec5 Mon Sep 17 00:00:00 2001 From: Aadesh Kheria Date: Thu, 16 Jul 2026 19:15:41 -0700 Subject: [PATCH] Refactor environment variable usage in hexclave.ts - Updated the hexclave.ts file to directly use environment variables instead of the publicEnv function for project ID, publishable client key, and API URL. - This change simplifies the configuration process for the internal tool by removing unnecessary function calls. --- apps/internal-tool/src/hexclave.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/internal-tool/src/hexclave.ts b/apps/internal-tool/src/hexclave.ts index 0bfa50b56..eb035779e 100644 --- a/apps/internal-tool/src/hexclave.ts +++ b/apps/internal-tool/src/hexclave.ts @@ -1,20 +1,20 @@ import { HexclaveClientApp } from "@hexclave/next"; -import { envOrDevDefault, publicEnv } from "./lib/env"; +import { envOrDevDefault } from "./lib/env"; const portPrefix = process.env.NEXT_PUBLIC_HEXCLAVE_PORT_PREFIX ?? "81"; const projectId = envOrDevDefault( - publicEnv("NEXT_PUBLIC_HEXCLAVE_PROJECT_ID", "NEXT_PUBLIC_STACK_PROJECT_ID"), + process.env.NEXT_PUBLIC_HEXCLAVE_PROJECT_ID, "internal", "NEXT_PUBLIC_HEXCLAVE_PROJECT_ID", ); const publishableClientKey = envOrDevDefault( - publicEnv("NEXT_PUBLIC_HEXCLAVE_PUBLISHABLE_CLIENT_KEY", "NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY"), + process.env.NEXT_PUBLIC_HEXCLAVE_PUBLISHABLE_CLIENT_KEY, "this-publishable-client-key-is-for-local-development-only", "NEXT_PUBLIC_HEXCLAVE_PUBLISHABLE_CLIENT_KEY", ); const apiUrl = envOrDevDefault( - publicEnv("NEXT_PUBLIC_HEXCLAVE_API_URL", "NEXT_PUBLIC_STACK_API_URL"), + process.env.NEXT_PUBLIC_HEXCLAVE_API_URL, `http://localhost:${portPrefix}02`, "NEXT_PUBLIC_HEXCLAVE_API_URL", );