fix: use t3-env

This commit is contained in:
ShubhamPalriwala
2024-03-14 20:36:49 +05:30
parent 6f4a84992f
commit 0f450dfaff
+4 -2
View File
@@ -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);
}
}