Literally changed a env variable

This commit is contained in:
Stefan-5422
2022-06-07 14:21:16 +00:00
parent 7655eebcd9
commit 6a3612066d
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -15,4 +15,5 @@ Before Runningthis on you local machine some things have to be setup
MAILPASSWORD: THE PASSWORD FOR THE MAIL ACCOUNT
DEV: SWITCH FOR DEV MODE AFFECTS EMAIL SERVER
ALLOW_ORIGIN: ORIGIN OF THE PRODUCTION CLIENT (FOR CORS)
FRONTEND_MAIL_ENDPOINT: THE ENDPOINT THE FRONTEND DOES EMAIL-VERIFICATION
```
+1 -2
View File
@@ -67,8 +67,7 @@ export const verificationMail = async (to: string, eventName: string, verificati
const raw = mjml.getTemplate("emailVerification");
// TODO: the process.env.DOMAIN is undefined in Development mode !!
verificationLink =
"https://" + ("api." + process.env.DOMAIN ?? "localhost:3000/api") + "/users/verify/" + verificationLink;
verificationLink = (process.env.FRONTEND_MAIL_ENDPOINT ?? "localhost:3000/api/users/verify/") + verificationLink;
const message = Handlebars.compile(raw);
const data = { eventName, verificationLink };