feat(docker): Prep master for docker deploys
This commit is contained in:
committed by
mrugesh mohapatra
parent
9e4583b1f3
commit
d79f9f4899
21
config/env.js
Normal file
21
config/env.js
Normal file
@ -0,0 +1,21 @@
|
||||
const path = require('path');
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
const envPath = path.resolve(__dirname, '../.env');
|
||||
require('dotenv').config({ path: envPath });
|
||||
}
|
||||
|
||||
const {
|
||||
HOME_LOCATION: home,
|
||||
API_LOCATION: api,
|
||||
FORUM_LOCATION: forum,
|
||||
LOCALE: locale,
|
||||
} = process.env;
|
||||
|
||||
const locations = {
|
||||
homeLocation: home,
|
||||
apiLocation: api,
|
||||
forumLocation: forum
|
||||
};
|
||||
|
||||
module.exports = Object.assign(locations, { locale });
|
Reference in New Issue
Block a user