envs
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 3m52s

This commit is contained in:
2026-01-28 00:02:24 +01:00
parent cbca29cbcf
commit b18ee8d7a0
3 changed files with 33 additions and 8 deletions

View File

@@ -7,6 +7,13 @@ import { GlitchtipErrorReportingService } from './errors/glitchtip-error-reporti
import { NoopErrorReportingService } from './errors/noop-error-reporting-service';
import { PinoLoggerService } from './logging/pino-logger-service';
import { config, getMaskedConfig } from '../config';
import dotenv from 'dotenv';
import path from 'path';
// Load .env file in development
if (process.env.NODE_ENV !== 'production') {
dotenv.config({ path: path.resolve(process.cwd(), '.env') });
}
let singleton: AppServices | undefined;

View File

@@ -6,6 +6,13 @@ import { NoopErrorReportingService } from './errors/noop-error-reporting-service
import { NoopLoggerService } from './logging/noop-logger-service';
import { PinoLoggerService } from './logging/pino-logger-service';
import { config, getMaskedConfig } from '../config';
import dotenv from 'dotenv';
import path from 'path';
// Load .env file in development
if (typeof window === 'undefined' && process.env.NODE_ENV !== 'production') {
dotenv.config({ path: path.resolve(process.cwd(), '.env') });
}
/**
* Singleton instance of AppServices.