Initialize environment variables and enhance email configuration logging

- Added dotenv to load environment variables from a .env file in server.js.
- Updated SMTP configuration in email-handler.ts with default values for better development setup.
- Implemented debug logging for email configuration to assist in troubleshooting during development.
This commit is contained in:
2025-11-02 01:17:23 +01:00
parent 9544b6800d
commit c6e60af83f
2 changed files with 16 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
// Load environment variables from .env file first
import dotenv from 'dotenv';
dotenv.config();
import express from 'express';
import compression from 'compression';
import { handler } from './dist/server/entry.mjs';