feature/IO-3255-simplified-parts-management - Remove unnecessary dotenv calls / fix import bug

This commit is contained in:
Dave
2025-08-21 11:57:12 -04:00
parent 70fa638c37
commit d690790dfe
3 changed files with 2 additions and 8 deletions

View File

@@ -1,10 +1,7 @@
// Load environment variables THIS MUST BE AT THE TOP
const path = require("path");
// Removed redundant dotenv initialization; server.js loads env vars at process start.
const getHostNameOrIP = require("./getHostNameOrIP");
const logger = require("./logger");
require("dotenv").config({
path: path.resolve(process.cwd(), `.env.${process.env.NODE_ENV || "development"}`)
});
const CrispStatusReporter = require("crisp-status-reporter").CrispStatusReporter;
const InstanceManager = require("../utils/instanceMgr").default;