Skip to content

Commit dbaf432

Browse files
committed
add new env var for web url
1 parent 3474c20 commit dbaf432

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

api/emailer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ const transporter = nodemailer.createTransport({
1515
});
1616

1717
const makeActivationURL = (activationCode) => {
18-
return `http://${process.env.DOMAIN}:${
19-
process.env.HTTP_PORT
20-
}/activate/${activationCode}`;
18+
return `${process.env.WEB_BASE}/activate/${activationCode}`;
2119
};
2220

2321
module.exports.sendActivationEmail = (to, activationCode) => {

0 commit comments

Comments
 (0)