about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xbin/build.ts2
-rw-r--r--src/app.ts4
-rw-r--r--src/index.ts2
3 files changed, 4 insertions, 4 deletions
diff --git a/bin/build.ts b/bin/build.ts
index bd030a1..69cfd6c 100755
--- a/bin/build.ts
+++ b/bin/build.ts
@@ -4,7 +4,7 @@ import log from "loglevel";
 
 import generateSite from "../src/templates";
 
-log.setLevel((import.meta.env.LOG_LEVEL || "info") as log.LogLevelDesc);
+log.setLevel((import.meta.env["LOG_LEVEL"] || "info") as log.LogLevelDesc);
 
 fs.mkdirSync("public", { recursive: true });
 log.info("Generating site...");
diff --git a/src/app.ts b/src/app.ts
index a3c1c2f..317b9c0 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -8,10 +8,10 @@ import log from "loglevel";
 
 import config from "./config";
 
-log.setLevel((import.meta.env.LOG_LEVEL || "info") as log.LogLevelDesc);
+log.setLevel((import.meta.env["LOG_LEVEL"] || "info") as log.LogLevelDesc);
 
 Sentry.init({
-  release: `homestead@${import.meta.env.FLY_MACHINE_VERSION}`,
+  release: `homestead@${import.meta.env["FLY_MACHINE_VERSION"]}`,
   tracesSampleRate: 1.0,
 });
 
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}`);