From 8acd079984b623960cd2b6e4e9a9ebe9b5bf5dad Mon Sep 17 00:00:00 2001 From: luminus-xd Date: Sun, 17 Mar 2024 05:35:59 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A8=98=E4=BA=8B=E3=83=9A=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=81=AESSR=E5=8C=96=20=E4=B8=80=E6=99=82=E8=A9=B3=E7=B4=B0?= =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B8=E6=88=BB=E3=81=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AddLikeButton.astro | 2 -- src/pages/blog/[...slug].astro | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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();