From 2d40fe2ceb36391cd2049f2f8689a9123bf024be Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 9 Apr 2024 11:52:56 +0200 Subject: Fix TypeScript warning about `env` access --- 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 c12d153..17eacd8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import log from "loglevel"; import { server, metricsServer } from "./app"; -log.setLevel((import.meta.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