Skip to content

Commit

Permalink
down to email
Browse files Browse the repository at this point in the history
  • Loading branch information
curly210102 committed Nov 5, 2021
1 parent 2001558 commit e579084
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/api/contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export default function handler(
};

(typeof slugs === "string" ? [slugs] : slugs).forEach((slug: string) => {
const templateDirectory = resolve(process.cwd(), "extensions");
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": "extensions/**/README.md"
"includeFiles": "email/**/template.mjml"
}
}
}

0 comments on commit e579084

Please sign in to comment.