Skip to content

Commit

Permalink
reproduction README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
curly210102 committed Nov 5, 2021
1 parent e9484b8 commit 1785755
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion extensions/a/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion pages/api/contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function handler(
(typeof slugs === "string" ? [slugs] : slugs).forEach((slug: string) => {
const templateDirectory = resolve(process.cwd(), "extensions");
const emailTemplate = readFileSync(
join(templateDirectory, slug, "index.md"),
join(templateDirectory, slug, "README.md"),
"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/**/index.md"
"includeFiles": "extensions/**/README.md"
}
}
}

0 comments on commit 1785755

Please sign in to comment.