import dotenv from 'dotenv';
import path from 'node:path';

dotenv.config();

export const config = {
  port: Number(process.env.PORT || 3100),
  sessionSecret: process.env.SESSION_SECRET || 'change-me',
  authUsername: process.env.AUTH_USERNAME || 'admin',
  authPassword: process.env.AUTH_PASSWORD || '',
  databasePath: path.resolve(process.cwd(), process.env.DATABASE_PATH || './management.sqlite'),
};
