about summary refs log tree commit diff stats
path: root/bin/build.ts
diff options
context:
space:
mode:
authorAlan Pearce2024-04-01 20:11:44 +0200
committerAlan Pearce2024-04-01 20:11:44 +0200
commit53d704777f8899b8750b083cef47b8fdf5830373 (patch)
treeab3f2cfced000d0459121184c154c235ae57c7db /bin/build.ts
parent734fbe8444db4454953663dd263a5778f8742eeb (diff)
downloadwebsite-53d704777f8899b8750b083cef47b8fdf5830373.tar.lz
website-53d704777f8899b8750b083cef47b8fdf5830373.tar.zst
website-53d704777f8899b8750b083cef47b8fdf5830373.zip
Use import.meta instead of Bun to get envvars
Diffstat (limited to 'bin/build.ts')
-rwxr-xr-xbin/build.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build.ts b/bin/build.ts
index 2b76a94..bd030a1 100755
--- a/bin/build.ts
+++ b/bin/build.ts
@@ -4,7 +4,7 @@ import log from "loglevel";
 
 import generateSite from "../src/templates";
 
-log.setLevel((Bun.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...");