We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e80ec91 commit 564e78fCopy full SHA for 564e78f
1 file changed
apps/site/next-data/providers/websiteFeeds.ts
@@ -3,13 +3,9 @@ import { cache } from 'react';
3
import generateWebsiteFeeds from '@/next-data/generators/websiteFeeds.mjs';
4
import { provideBlogPosts } from '@/next-data/providers/blogData';
5
6
-const getWebsiteFeeds = cache(() =>
7
- generateWebsiteFeeds(provideBlogPosts('all'))
8
-);
9
-
10
-const provideWebsiteFeeds = cache(async (feed: string) => {
11
- const websiteFeeds = getWebsiteFeeds();
+const websiteFeeds = generateWebsiteFeeds(provideBlogPosts('all'));
12
+const provideWebsiteFeeds = cache((feed: string) => {
13
if (feed.includes('.xml') && websiteFeeds.has(feed)) {
14
return websiteFeeds.get(feed)!.rss2();
15
}
0 commit comments