Skip to content

Commit 2a6911a

Browse files
committed
Move email links to our domain
1 parent 164edde commit 2a6911a

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

backend/email/emails/functions/helpers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {MatchesType} from "common/love/bookmarked_searches";
1010
import NewSearchAlertsEmail from "email/new-search_alerts";
1111
import WelcomeEmail from "email/welcome";
1212

13-
const from = 'Compass <no-reply@compassmeet.com>'
13+
const from = 'Compass <compass@compassmeet.com>'
1414

1515
// export const sendNewMatchEmail = async (
1616
// privateUser: PrivateUser,

backend/email/emails/functions/send-email.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const sendEmail = async (
2525
}
2626

2727
const { data, error } = await sendEmailThrottle(
28-
{ replyTo: 'Compass <no-reply@compassmeet.com>', ...payload },
28+
{ replyTo: 'Compass <hello@compassmeet.com>', ...payload },
2929
options
3030
)
3131
console.debug('resend.emails.send', data, error)

backend/email/emails/utils.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {Column, Img, Link, Row, Section, Text} from "@react-email/components";
2-
import {discordLink, githubRepo, patreonLink, paypalLink} from "common/constants";
32
import {DOMAIN} from "common/envs/constants";
43

54
interface Props {
@@ -15,40 +14,40 @@ export const Footer = ({
1514
<hr style={{border: 'none', borderTop: '1px solid #e0e0e0', margin: '10px 0'}}/>
1615
<Row>
1716
<Column align="center">
18-
<Link href={githubRepo} target="_blank">
17+
<Link href={`https://${DOMAIN}/github`} target="_blank">
1918
<Img
2019
src={`https://${DOMAIN}/images/github-logo.png`}
2120
width="24"
2221
height="24"
2322
alt="GitHub"
24-
style={{ display: "inline-block", margin: "0 4px" }}
23+
style={{display: "inline-block", margin: "0 4px"}}
2524
/>
2625
</Link>
27-
<Link href={discordLink} target="_blank">
26+
<Link href={`https://${DOMAIN}/discord`} target="_blank">
2827
<Img
2928
src={`https://${DOMAIN}/images/discord-logo.png`}
3029
width="24"
3130
height="24"
3231
alt="Discord"
33-
style={{ display: "inline-block", margin: "0 4px" }}
32+
style={{display: "inline-block", margin: "0 4px"}}
3433
/>
3534
</Link>
36-
<Link href={patreonLink} target="_blank">
35+
<Link href={`https://${DOMAIN}/patreon`} target="_blank">
3736
<Img
3837
src={`https://${DOMAIN}/images/patreon-logo.png`}
3938
width="24"
4039
height="24"
4140
alt="Patreon"
42-
style={{ display: "inline-block", margin: "0 4px" }}
41+
style={{display: "inline-block", margin: "0 4px"}}
4342
/>
4443
</Link>
45-
<Link href={paypalLink} target="_blank">
44+
<Link href={`https://${DOMAIN}/paypal`} target="_blank">
4645
<Img
4746
src={`https://${DOMAIN}/images/paypal-logo.png`}
4847
width="24"
4948
height="24"
5049
alt="PayPal"
51-
style={{ display: "inline-block", margin: "0 4px" }}
50+
style={{display: "inline-block", margin: "0 4px"}}
5251
/>
5352
</Link>
5453
</Column>

web/next.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ module.exports = {
6969
return config
7070
},
7171
async redirects() {
72-
return []
72+
return [
73+
{ source: '/discord', destination: 'https://discord.gg/8Vd7jzqjun', permanent: false },
74+
{ source: '/patreon', destination: 'https://patreon.com/CompassMeet', permanent: false },
75+
{ source: '/paypal', destination: 'https://www.paypal.com/paypalme/CompassConnections', permanent: false },
76+
{ source: '/github', destination: "https://github.com/CompassConnections/Compass", permanent: false },
77+
];
7378
},
7479
}

0 commit comments

Comments
 (0)