Skip to content

Commit

Permalink
change to mjml
Browse files Browse the repository at this point in the history
  • Loading branch information
curly210102 committed Nov 5, 2021
1 parent dc4a4ce commit 90c88e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/api/contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function handler(
(typeof slugs === "string" ? [slugs] : slugs).forEach((slug: string) => {
const templateDirectory = resolve(process.cwd(), "email");
const emailTemplate = readFileSync(
join(templateDirectory, slug, "README.md"),
join(templateDirectory, slug, "template.mjml"),
"utf8"
);
if (!emailTemplate) {
Expand Down
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"pages/api/contact.ts": {
"includeFiles": "email/**/README.md"
"includeFiles": "email/**/template.mjml"
}
}
}

0 comments on commit 90c88e4

Please sign in to comment.