diff --git a/src/components/comment/Comments.astro b/src/components/comment/Comments.astro index 4eb67b4..c8b6d3c 100644 --- a/src/components/comment/Comments.astro +++ b/src/components/comment/Comments.astro @@ -13,8 +13,10 @@ interface Props { const { commentKey, title } = Astro.props; const comments = await loadComments(commentKey, title, 0); -// Increase the PV. -await increaseViews(commentKey, title); +// Increase the PV in production environment. +if (options.isProd()) { + await increaseViews(commentKey, title); +} ---