Skip to content

Commit 8426cef

Browse files
fixup! make site work with the Cloudflare OpenNext adapter
1 parent 65a0821 commit 8426cef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/site/next-data/providers/blogData.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { categories, posts } = await generateBlogData();
99
export const provideBlogCategories = cache(() => categories);
1010

1111
export const provideBlogPosts = cache(
12-
async (category: BlogCategory): Promise<BlogPostsRSC> => {
12+
(category: BlogCategory): BlogPostsRSC => {
1313
const categoryPosts = posts
1414
.filter(post => post.categories.includes(category))
1515
.sort((a, b) => b.date.getTime() - a.date.getTime());
@@ -32,8 +32,8 @@ export const provideBlogPosts = cache(
3232
);
3333

3434
export const providePaginatedBlogPosts = cache(
35-
async (category: BlogCategory, page: number): Promise<BlogPostsRSC> => {
36-
const { posts, pagination } = await provideBlogPosts(category);
35+
(category: BlogCategory, page: number): BlogPostsRSC => {
36+
const { posts, pagination } = provideBlogPosts(category);
3737

3838
// This autocorrects if invalid numbers are given to only allow
3939
// actual valid numbers to be provided

0 commit comments

Comments
 (0)