diff --git a/src/components/AddLikeButton.astro b/src/components/AddLikeButton.astro index 69c21af..f5aa7b6 100644 --- a/src/components/AddLikeButton.astro +++ b/src/components/AddLikeButton.astro @@ -7,8 +7,6 @@ type Props = { const { articleId } = Astro.props; -export const prerender = false; - const likes = await db.select().from(Like).where(eq(Like.articleId, articleId)); const likesCount = likes.length; --- diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 1a42a0b..da1f34f 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -10,7 +10,7 @@ import ShareButton from '@components/ShareButton.astro'; import styles from '@styles/blog.module.css'; -export const prerender = false; +// export const prerender = false; export async function getStaticPaths() { const posts = await getList();