feature/IO-3255-simplified-parts-management - Remove unnecessary dotenv calls / fix import bug
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
// Load environment variables THIS MUST BE AT THE TOP
|
||||
const path = require("path");
|
||||
|
||||
const InstanceManager = require("../utils/instanceMgr").default;
|
||||
const winston = require("winston");
|
||||
const WinstonCloudWatch = require("winston-cloudwatch");
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
// Load environment variables THIS MUST BE AT THE TOP
|
||||
// Removed redundant dotenv initialization; server.js loads env vars at process start.
|
||||
const path = require("path");
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user