From 2a6911ae3dd60aec1887cbfab910693538601e63 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 13 Oct 2025 13:34:10 +0200 Subject: [PATCH] Move email links to our domain --- backend/email/emails/functions/helpers.tsx | 2 +- backend/email/emails/functions/send-email.ts | 2 +- backend/email/emails/utils.tsx | 17 ++++++++--------- web/next.config.js | 7 ++++++- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/backend/email/emails/functions/helpers.tsx b/backend/email/emails/functions/helpers.tsx index a99a6f6d..47962bfd 100644 --- a/backend/email/emails/functions/helpers.tsx +++ b/backend/email/emails/functions/helpers.tsx @@ -10,7 +10,7 @@ import {MatchesType} from "common/love/bookmarked_searches"; import NewSearchAlertsEmail from "email/new-search_alerts"; import WelcomeEmail from "email/welcome"; -const from = 'Compass ' +const from = 'Compass ' // export const sendNewMatchEmail = async ( // privateUser: PrivateUser, diff --git a/backend/email/emails/functions/send-email.ts b/backend/email/emails/functions/send-email.ts index e265df4b..aa40624d 100644 --- a/backend/email/emails/functions/send-email.ts +++ b/backend/email/emails/functions/send-email.ts @@ -25,7 +25,7 @@ export const sendEmail = async ( } const { data, error } = await sendEmailThrottle( - { replyTo: 'Compass ', ...payload }, + { replyTo: 'Compass ', ...payload }, options ) console.debug('resend.emails.send', data, error) diff --git a/backend/email/emails/utils.tsx b/backend/email/emails/utils.tsx index 5d821cdc..593cd6cd 100644 --- a/backend/email/emails/utils.tsx +++ b/backend/email/emails/utils.tsx @@ -1,5 +1,4 @@ import {Column, Img, Link, Row, Section, Text} from "@react-email/components"; -import {discordLink, githubRepo, patreonLink, paypalLink} from "common/constants"; import {DOMAIN} from "common/envs/constants"; interface Props { @@ -15,40 +14,40 @@ export const Footer = ({
- + GitHub - + Discord - + Patreon - + PayPal diff --git a/web/next.config.js b/web/next.config.js index c8e3ae8e..2a974f7e 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -69,6 +69,11 @@ module.exports = { return config }, async redirects() { - return [] + return [ + { source: '/discord', destination: 'https://discord.gg/8Vd7jzqjun', permanent: false }, + { source: '/patreon', destination: 'https://patreon.com/CompassMeet', permanent: false }, + { source: '/paypal', destination: 'https://www.paypal.com/paypalme/CompassConnections', permanent: false }, + { source: '/github', destination: "https://github.com/CompassConnections/Compass", permanent: false }, + ]; }, }