forked from martin-trajanovski/nestjs-heroku-ready
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.js
26 lines (19 loc) · 1.08 KB
/
env.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function Environments() {
this.NODE_ENV = process.env.NODE_ENV || 'development';
this.PROJECT_NAME = process.env.PROJECT_NAME || 'nestjs-heroku-ready';
this.HOST_NAME = process.env.HOST_NAME || 'localhost';
this.API_PORT = process.env.API_PORT || 5000;
this.API_URL = process.env.API_URL || `http://${this.HOST_NAME}:${this.API_PORT}`;
this.FIREBASE_CONFIG = process.env.FIREBASE_CONFIG || {
apiKey: process.env.FIREBASE_API_KEY || '<API_KEY>',
authDomain: process.env.FIREBASE_AUTH_DOMAIN || '<FIREBASE_AUTH_DOMAIN>',
databaseURL: process.env.FIREBASE_DATABASE_URL || '<FIREBASE_DATABASE_URL>',
projectId: process.env.FIREBASE_PROJECT_ID || '<FIREBASE_PROJECT_ID>',
storageBucket: process.env.FIREBASE_STORAGE_BUCKET || '<FIREBASE_STORAGE_BUCKET>',
messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID || '<FIREBASE_MESSAGING_SENDER_ID>',
};
this.GOOGLE_ANALYTICS = process.env.GOOGLE_ANALYTICS || '<GOOGLE_ANALYTICS>';
this.SENTRY_DSN = process.env.SENTRY_DSN || null;
this.RENDERTRON_URL = process.env.RENDERTRON_URL || null;
}
module.exports = new Environments();