/**
 * App Configuration
 */

export interface AppConfig {
  port: number;
  env: string;
  apiPrefix: string;
}

export const appConfig = (): AppConfig => ({
  port: parseInt(process.env.APP_PORT || '3006', 10),
  env: process.env.NODE_ENV || 'development',
  apiPrefix: process.env.API_PREFIX || 'api/v1',
});
