Skip to content

Commit

Permalink
fix: verify link should pass with correct domain (#448)
Browse files Browse the repository at this point in the history
Co-authored-by: orig <[email protected]>
  • Loading branch information
origranot and orig authored Sep 18, 2023
1 parent 371b2d0 commit 2b9bdb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/backend/src/novu/novu.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export class NovuService {

async sendVerificationEmail(user: UserContext) {
const domain =
process.env.NODE_ENV === 'production'
this.config.general.env === 'production'
? `https://${this.config.front.domain}`
: `http://${this.config.front.domain}:${this.config.general.frontendPort}`;
const verificationUrl = `${this.appConfigService.getConfig().front.domain}/register/verify/${user.verificationToken}`;
const verificationUrl = `${domain}/register/verify/${user.verificationToken}`;

await this.novu.trigger('new-user', {
to: {
Expand Down

0 comments on commit 2b9bdb6

Please sign in to comment.