about summary refs log tree commit diff stats
path: root/src/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/app.ts b/src/app.ts
index cdabb3a..0f8f08d 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -8,15 +8,17 @@ import log from "loglevel";
 
 import config from "./config";
 
-log.setLevel((Bun.env.LOG_LEVEL || "info") as log.LogLevelDesc);
+log.setLevel((import.meta.env.LOG_LEVEL || "info") as log.LogLevelDesc);
 
 Sentry.init({
-  release: `homestead@${Bun.env.FLY_MACHINE_VERSION}`,
+  release: `homestead@${import.meta.env.FLY_MACHINE_VERSION}`,
   tracesSampleRate: 1.0,
 });
 
 const expectedHostURL = new URL(
-  Bun.env.NODE_ENV === "production" ? config.base_url : "http://localhost:3000",
+  import.meta.env.NODE_ENV === "production"
+    ? config.base_url
+    : "http://localhost:3000",
 );
 const defaultHeaders = {
   ...config.extra.headers,