env variables problem fixed, removing debug lines

This commit is contained in:
Apher 2026-06-28 23:29:01 +00:00
parent 86c6cbd929
commit 6d48d0fe1d

View File

@ -1,5 +1,3 @@
console.log(JSON.stringify(process.env, null, 2));
if (process.env.NODE_ENV !== "production") {
require("dotenv").config();
}
@ -82,7 +80,7 @@ const initRoles = async () => {
const start = async () => {
try {
// Validate important env vars
if (!authConfig.secret) {
if (!authConfig.jwt_secret) {
console.warn("JWT_SECRET not set. Ensure secure secret in production.");
}