Skip to content

Commit

Permalink
up to extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
curly210102 committed Nov 5, 2021
1 parent e579084 commit cdf4d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
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(), "email");
const templateDirectory = resolve(process.cwd(), "extensions");
const emailTemplate = readFileSync(
join(templateDirectory, slug, "template.mjml"),
join(templateDirectory, slug, "README.md"),
"utf8"
);
if (!emailTemplate) {
Expand Down

0 comments on commit cdf4d6a

Please sign in to comment.