You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
495 B

'use strict';
const path = require('path');
module.exports.getConfig = () => {
const config = {
'MODE': 'Development',
'PORT': process.env.PORT || 5000,
'MONGO_URL': process.env.MONGO_URL,
'UPLOAD_PATH': path.resolve(`${__dirname}/../uploads`),
'JWT_SECRET': process.env.JWT_SECRET || 'R4ND0M5TR1NG'
};
// Modify for Production
if (process.env.NODE_ENV === 'production') {
config.MODE = 'Production';
}
return config;
};