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
|
|
@ -31,6 +31,8 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build
|
run: bun run build
|
||||||
|
env:
|
||||||
|
NODE_ENV: production
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Workers
|
- name: Deploy to Cloudflare Workers
|
||||||
run: bunx wrangler deploy --assets=./dist
|
run: bunx wrangler deploy --assets=./dist
|
||||||
|
|
|
||||||
3
index.ts
3
index.ts
|
|
@ -78,8 +78,7 @@ await Promise.all(posts.map(async (post) => {
|
||||||
link: `/posts/${post.replace(".md", ".html")}`,
|
link: `/posts/${post.replace(".md", ".html")}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`Built page for ${frontmatter.draft ? 'draft' : 'post'}: ${frontmatter.title}`);
|
if (process.env.NODE_ENV !== "production") console.log(`Built page for ${frontmatter.draft ? 'draft' : 'post'}: ${frontmatter.title}`);
|
||||||
// TODO: table of contents generation
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const parsedPosts = postLinks
|
const parsedPosts = postLinks
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue