import { resolve } from 'path';
import { config } from 'dotenv';

// Load environment variables from .env file (quiet in production — vars injected by Docker)
config({ quiet: process.env.NODE_ENV === 'production' });

const root = resolve(__dirname, '../');
const configPath = resolve(root, '.env');

export { root, configPath };
