'use strict'; const _ = require('lodash'); const domain = 'pomodoro.bitmill.co'; const defaults = { domain, title: 'Pomodoro', name: 'pomdoro', protocol: 'http', get host() { return this.port ? `${this.hostname}:${this.port}` : this.hostname; }, get url() { return `${this.protocol}://${this.host}/`; }, emails: { robot: 'no-reply@thecodebureau.com', info: 'info@thecodebureau.com', webmaster: 'webmaster@thecodebureau.com', order: 'info@thecodebureau.com', }, }; module.exports = _.merge(defaults, { development: { hostname: 'localhost', port: process.env.EXTERNAL_PORT || process.env.PORT || require('./port'), }, testing: { hostname: 'localhost', port: process.env.PORT || require('./port'), }, staging: { hostname: 'staging.pomodoro.bitmill.co', }, production: { hostname: domain, // protocol: 'https', // emails: { // robot: `no-reply@${domain}`, // info: `info@${domain}`, // webmaster: `webmaster@${domain}`, // order: `order@${domain}`, // }, }, }[ENV]);