diff options
author | Alan Pearce | 2024-04-09 11:52:56 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-09 11:56:44 +0200 |
commit | 2d40fe2ceb36391cd2049f2f8689a9123bf024be (patch) | |
tree | 4df1297d8178e18aa46b442318d94009a8cc9a69 /bin/build.ts | |
parent | 3cc18d65200cfa3f30a621f110292561b823089d (diff) | |
download | website-2d40fe2ceb36391cd2049f2f8689a9123bf024be.tar.lz website-2d40fe2ceb36391cd2049f2f8689a9123bf024be.tar.zst website-2d40fe2ceb36391cd2049f2f8689a9123bf024be.zip |
Fix TypeScript warning about `env` access
Diffstat (limited to 'bin/build.ts')
-rwxr-xr-x | bin/build.ts | 2 |
1 files changed, 1 insertions, 1 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..."); |