Skip to content

Commit 564e78f

Browse files
fixup! make site work with the Cloudflare OpenNext adapter
1 parent e80ec91 commit 564e78f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ 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(() =>
7-
generateWebsiteFeeds(provideBlogPosts('all'))
8-
);
9-
10-
const provideWebsiteFeeds = cache(async (feed: string) => {
11-
const websiteFeeds = getWebsiteFeeds();
6+
const websiteFeeds = generateWebsiteFeeds(provideBlogPosts('all'));
127

8+
const provideWebsiteFeeds = cache((feed: string) => {
139
if (feed.includes('.xml') && websiteFeeds.has(feed)) {
1410
return websiteFeeds.get(feed)!.rss2();
1511
}

0 commit comments

Comments
 (0)