Skip to content

Commit 183a718

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

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { cache } from 'react';
33
import generateWebsiteFeeds from '@/next-data/generators/websiteFeeds.mjs';
44
import { provideBlogPosts } from '@/next-data/providers/blogData';
55

6-
const getWebsiteFeeds = cache(async () =>
7-
generateWebsiteFeeds(await provideBlogPosts('all'))
6+
const getWebsiteFeeds = cache(() =>
7+
generateWebsiteFeeds(provideBlogPosts('all'))
88
);
99

1010
const provideWebsiteFeeds = cache(async (feed: string) => {
11-
const websiteFeeds = await getWebsiteFeeds();
11+
const websiteFeeds = getWebsiteFeeds();
1212

1313
if (feed.includes('.xml') && websiteFeeds.has(feed)) {
1414
return websiteFeeds.get(feed)!.rss2();

0 commit comments

Comments
 (0)