We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8426cef commit 183a718Copy full SHA for 183a718
1 file changed
apps/site/next-data/providers/websiteFeeds.ts
@@ -3,12 +3,12 @@ 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(async () =>
7
- generateWebsiteFeeds(await provideBlogPosts('all'))
+const getWebsiteFeeds = cache(() =>
+ generateWebsiteFeeds(provideBlogPosts('all'))
8
);
9
10
const provideWebsiteFeeds = cache(async (feed: string) => {
11
- const websiteFeeds = await getWebsiteFeeds();
+ const websiteFeeds = getWebsiteFeeds();
12
13
if (feed.includes('.xml') && websiteFeeds.has(feed)) {
14
return websiteFeeds.get(feed)!.rss2();
0 commit comments