disable logging on prod
All checks were successful
Build and Deploy / deploy (push) Successful in 55s

This commit is contained in:
Satria 2026-07-14 15:35:42 +07:00
commit 7953835eec
2 changed files with 3 additions and 2 deletions

View file

@ -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