mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-05 23:41:24 -05:00
Move email links to our domain
This commit is contained in:
@@ -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 <no-reply@compassmeet.com>'
|
||||
const from = 'Compass <compass@compassmeet.com>'
|
||||
|
||||
// export const sendNewMatchEmail = async (
|
||||
// privateUser: PrivateUser,
|
||||
|
||||
@@ -25,7 +25,7 @@ export const sendEmail = async (
|
||||
}
|
||||
|
||||
const { data, error } = await sendEmailThrottle(
|
||||
{ replyTo: 'Compass <no-reply@compassmeet.com>', ...payload },
|
||||
{ replyTo: 'Compass <hello@compassmeet.com>', ...payload },
|
||||
options
|
||||
)
|
||||
console.debug('resend.emails.send', data, error)
|
||||
|
||||
@@ -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 = ({
|
||||
<hr style={{border: 'none', borderTop: '1px solid #e0e0e0', margin: '10px 0'}}/>
|
||||
<Row>
|
||||
<Column align="center">
|
||||
<Link href={githubRepo} target="_blank">
|
||||
<Link href={`https://${DOMAIN}/github`} target="_blank">
|
||||
<Img
|
||||
src={`https://${DOMAIN}/images/github-logo.png`}
|
||||
width="24"
|
||||
height="24"
|
||||
alt="GitHub"
|
||||
style={{ display: "inline-block", margin: "0 4px" }}
|
||||
style={{display: "inline-block", margin: "0 4px"}}
|
||||
/>
|
||||
</Link>
|
||||
<Link href={discordLink} target="_blank">
|
||||
<Link href={`https://${DOMAIN}/discord`} target="_blank">
|
||||
<Img
|
||||
src={`https://${DOMAIN}/images/discord-logo.png`}
|
||||
width="24"
|
||||
height="24"
|
||||
alt="Discord"
|
||||
style={{ display: "inline-block", margin: "0 4px" }}
|
||||
style={{display: "inline-block", margin: "0 4px"}}
|
||||
/>
|
||||
</Link>
|
||||
<Link href={patreonLink} target="_blank">
|
||||
<Link href={`https://${DOMAIN}/patreon`} target="_blank">
|
||||
<Img
|
||||
src={`https://${DOMAIN}/images/patreon-logo.png`}
|
||||
width="24"
|
||||
height="24"
|
||||
alt="Patreon"
|
||||
style={{ display: "inline-block", margin: "0 4px" }}
|
||||
style={{display: "inline-block", margin: "0 4px"}}
|
||||
/>
|
||||
</Link>
|
||||
<Link href={paypalLink} target="_blank">
|
||||
<Link href={`https://${DOMAIN}/paypal`} target="_blank">
|
||||
<Img
|
||||
src={`https://${DOMAIN}/images/paypal-logo.png`}
|
||||
width="24"
|
||||
height="24"
|
||||
alt="PayPal"
|
||||
style={{ display: "inline-block", margin: "0 4px" }}
|
||||
style={{display: "inline-block", margin: "0 4px"}}
|
||||
/>
|
||||
</Link>
|
||||
</Column>
|
||||
|
||||
@@ -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 },
|
||||
];
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user