22 lines
492 B
TypeScript
22 lines
492 B
TypeScript
|
|
/* 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
|
||
|
|
);
|