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 --- bin/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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..."); -- cgit 1.4.1