lux-framework
Version:
Build scalable, Node.js-powered REST APIs with almost no code.
23 lines (19 loc) • 412 B
JavaScript
// @flow
import { NODE_ENV } from '../../../../constants';
const isTestENV = NODE_ENV === 'test';
const isProdENV = NODE_ENV === 'production';
export const CREATE_DEFAULT_CONFIG_RESULT = {
server: {
cors: {
enabled: false
}
},
logging: {
level: isProdENV ? 'INFO' : 'DEBUG',
format: isProdENV ? 'json' : 'text',
enabled: !isTestENV,
filter: {
params: []
}
}
};