Skip to content

Commit

Permalink
Merge pull request #53 from luminus-xd/add/astro-db
Browse files Browse the repository at this point in the history
記事ページのSSR化 一時詳細ページ戻し
  • Loading branch information
luminus-xd authored Mar 16, 2024
2 parents 1b86ec7 + 8acd079 commit 33cd548
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/components/AddLikeButton.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 33cd548

Please sign in to comment.