Presupuestador_web/server/src/config/index.ts

22 lines
492 B
TypeScript
Raw Normal View History

2024-04-23 15:29:38 +00:00
/* eslint-disable @typescript-eslint/no-var-requires */
import path from 'path';
const enviroment = process.env.NODE_ENV || 'development';
const isProduction = enviroment === 'production';
const isDevelopment = enviroment === 'development';
const enviromentConfig = require(path.resolve(
__dirname,
'environments',
enviroment + '.ts'
));
export const config = Object.assign(
{
enviroment,
isProduction,
isDevelopment,
},
enviromentConfig
);