diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config.js b/src/config.js new file mode 100644 index 0000000..949c284 --- /dev/null +++ b/src/config.js @@ -0,0 +1,12 @@ +function isProd() { + return process.env.NODE_ENV == 'prod'; +} + +var mqttUrl = process.env.MQTT_URL || 'mqtt://trygvis.io'; +var postgresqlUrl = process.env.DATABASE_URL || 'postgres://diller:diller@localhost:5432/diller'; + +module.exports = { + isProd: isProd, + mqttUrl: mqttUrl, + postgresqlUrl: postgresqlUrl +} |