Add prod urls to verify emails

This commit is contained in:
Berkeley Martinez
2016-06-02 13:49:34 -07:00
parent 564f4c1180
commit 942962fa0f
2 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import { blacklistedUsernames } from '../../server/utils/constants';
const debug = debugFactory('fcc:user:remote');
const BROWNIEPOINTS_TIMEOUT = [1, 'hour'];
const isDev = process.env.NODE_ENV !== 'production';
function getAboutProfile({
username,
@ -356,6 +357,9 @@ module.exports = function(User) {
to: email,
from: 'Team@freecodecamp.com',
subject: 'Welcome to Free Code Camp!',
protocol: isDev ? null : 'https',
host: isDev ? 'localhost' : 'freecodecamp.com',
port: isDev ? null : 443,
template: path.join(
__dirname,
'..',