-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
78 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ ALLOWED_EMAILS=["[email protected]","[email protected]"] | |
# To disable Imagekit delete these 3 variables | ||
IMAGEKIT_PUBLIC_KEY=<imagekit public key> (i.e. "public_...") | ||
IMAGEKIT_PRIVATE_KEY=<imagekit private key> (i.e. "private_...") | ||
IMAGEKIT_URL_ENDPOINT=<imagekit url> (i.e. "https://ik.imagekit.io/...") | ||
IMAGEKIT_URL_ENDPOINT=<imagekit url> (i.e. "https://ik.imagekit.io/...") | ||
AWS_ACCESS_KEY_ID=.... | ||
AWS_SECRET_ACCESS_KEY=.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,7 @@ | |
|
||
@font-face { | ||
font-family: "Inter"; | ||
src: | ||
url("/inter.ttf") | ||
src: url("/inter.ttf"); | ||
} | ||
|
||
.test { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,26 +12,30 @@ export const sesClient = new SESClient({ | |
}, | ||
}); | ||
|
||
export const sendEmail = async (to: string[], subject: string, message: {content: string, html: boolean}) => { | ||
export const sendEmail = async ( | ||
to: string[], | ||
subject: string, | ||
message: { content: string; html: boolean }, | ||
) => { | ||
const params: SendEmailRequest = { | ||
Source: `"Events" <[email protected]>`, | ||
Destination: { | ||
ToAddresses: to | ||
}, | ||
Message: { | ||
/* required */ | ||
Body: { | ||
/* required */ | ||
[message.html ? "Html" : "Text"]: { | ||
Charset: "UTF-8", | ||
Data: message.content, | ||
}, | ||
}, | ||
Subject: { | ||
Charset: "UTF-8", | ||
Data: subject, | ||
}, | ||
}, | ||
Destination: { | ||
ToAddresses: to, | ||
}, | ||
Message: { | ||
/* required */ | ||
Body: { | ||
/* required */ | ||
[message.html ? "Html" : "Text"]: { | ||
Charset: "UTF-8", | ||
Data: message.content, | ||
}, | ||
}, | ||
Subject: { | ||
Charset: "UTF-8", | ||
Data: subject, | ||
}, | ||
}, | ||
}; | ||
return await sesClient.send(new SendEmailCommand(params as SendEmailRequest)); | ||
}; |