From 53d704777f8899b8750b083cef47b8fdf5830373 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 1 Apr 2024 20:11:44 +0200 Subject: Use import.meta instead of Bun to get envvars --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index 9e806ba..c12d153 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import log from "loglevel"; import { server, metricsServer } from "./app"; -log.setLevel((Bun.env.LOG_LEVEL || "info") as log.LogLevelDesc); +log.setLevel((import.meta.env.LOG_LEVEL || "info") as log.LogLevelDesc); const metricsServed = Bun.serve(metricsServer); console.info(`Metrics server started on port ${metricsServed.port}`); -- cgit 1.4.1