disable logging on prod
All checks were successful
Build and Deploy / deploy (push) Successful in 55s
All checks were successful
Build and Deploy / deploy (push) Successful in 55s
This commit is contained in:
parent
1adcfa0cbd
commit
7953835eec
2 changed files with 3 additions and 2 deletions
3
index.ts
3
index.ts
|
|
@ -78,8 +78,7 @@ await Promise.all(posts.map(async (post) => {
|
|||
link: `/posts/${post.replace(".md", ".html")}`,
|
||||
});
|
||||
|
||||
console.log(`Built page for ${frontmatter.draft ? 'draft' : 'post'}: ${frontmatter.title}`);
|
||||
// TODO: table of contents generation
|
||||
if (process.env.NODE_ENV !== "production") console.log(`Built page for ${frontmatter.draft ? 'draft' : 'post'}: ${frontmatter.title}`);
|
||||
}));
|
||||
|
||||
const parsedPosts = postLinks
|
||||
|
|
|
|||
Loading…
Reference in a new issue