From 39eaad9c856ce91a7e23fa4f0e7f64800e537e3b Mon Sep 17 00:00:00 2001 From: niqzart Date: Sun, 8 Feb 2026 00:48:25 +0300 Subject: [PATCH] fix: make environment variables lowercase (they should be case-insensitive, but node is weird) --- src/common/fetcher.ts | 4 ++-- src/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/fetcher.ts b/src/common/fetcher.ts index 42cf0a7..3e0e734 100644 --- a/src/common/fetcher.ts +++ b/src/common/fetcher.ts @@ -1,8 +1,8 @@ import { logServerError } from "./errors" -const back2BaseUrl = process.env.BACK_2__BASE_URL || "http://localhost:5000" +const back2BaseUrl = process.env.back_2__base_url || "http://localhost:5000" const back2BasePath = "/internal/storage-service/v2" -const back2ApiKey = process.env.BACK_2__API_KEY || "local" +const back2ApiKey = process.env.back_2__api_key || "local" export async function fetchStorage(path: string, init?: RequestInit): Promise { try { diff --git a/src/index.ts b/src/index.ts index c7b1336..230ac61 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,7 @@ const server = Server.configure({ extensions: [ new Logger( { - onChange: process.env.ENABLE_CHANGE_LOGS === "true", + onChange: process.env.enable_change_logs === "true", } ), new Database({