From 2a8ff989f34d19353d1617393f4dec249971ef74 Mon Sep 17 00:00:00 2001 From: Andreas Hilbig Date: Tue, 27 Jan 2026 17:28:22 +0100 Subject: [PATCH] chore: centralize configuration management using a new `Config` class - Replaced all direct `process.env` references with `Config` class constants. - Added `dotenv` package to manage environment variables. - Updated affected files, including schema loader, Zabbix API, resolvers, logging system, and integration points. - Improved maintainability and consistency in environment variable handling. --- .idea/workspace.xml | 35 ++++++++++--- package-lock.json | 75 +++++++++++---------------- package.json | 1 + src/api/resolvers.ts | 3 +- src/api/schema.ts | 11 ++-- src/common_utils.ts | 23 +++++--- src/datasources/zabbix-api.ts | 9 ++-- src/datasources/zabbix-permissions.ts | 3 +- src/index.ts | 3 +- src/logging/logger.ts | 4 +- 10 files changed, 95 insertions(+), 72 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7c2ae16..58392a8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,8 +4,17 @@