From 0f450dfafff3afc9063e9c2d0aa28f5bcf90762d Mon Sep 17 00:00:00 2001 From: ShubhamPalriwala Date: Thu, 14 Mar 2024 20:36:49 +0530 Subject: [PATCH] fix: use t3-env --- apps/web/instrumentation.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/instrumentation.ts b/apps/web/instrumentation.ts index f86fe9cca1..2f228652cf 100644 --- a/apps/web/instrumentation.ts +++ b/apps/web/instrumentation.ts @@ -1,7 +1,9 @@ +import { env } from "@formbricks/lib/env"; + export async function register() { - if (process.env.NEXT_RUNTIME === "nodejs" && process.env.OPENTELEMETRY_LISTENER_URL) { + if (process.env.NEXT_RUNTIME === "nodejs" && env.OPENTELEMETRY_LISTENER_URL) { const { startInstrumentationForNode } = await import("./instrumentation.node"); - startInstrumentationForNode(process.env.OPENTELEMETRY_LISTENER_URL); + startInstrumentationForNode(env.OPENTELEMETRY_LISTENER_URL); } }