Skip to content

Commit de969e0

Browse files
committed
fix: update blog page to fetch posts from external backend API
1 parent 440b961 commit de969e0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/(landing)/blog/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ export const metadata: Metadata = generatePageMetadata('blog');
1313

1414
async function StreamingBlogGridWrapper() {
1515
try {
16-
const { posts, hasMore } = await getBlogPosts({
16+
// Fetch blog posts from external backend API
17+
const result = await getBlogPosts({
1718
page: 1,
1819
limit: 12,
1920
sort: 'latest',
2021
});
22+
2123
return (
2224
<StreamingBlogGrid
23-
initialPosts={posts}
24-
hasMore={hasMore}
25+
initialPosts={result.posts}
26+
hasMore={result.hasMore}
2527
initialPage={1}
2628
/>
2729
);

0 commit comments

Comments
 (0)