We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48b0ce3 commit 62e16b3Copy full SHA for 62e16b3
apps/site/next-data/generators/releaseSchedule.mjs
@@ -4,9 +4,7 @@ import { fetchWithRetry } from '#site/util/fetch';
4
async function fetchReleaseSchedule() {
5
const response = await fetchWithRetry(RELEASE_SCHEDULE_URL);
6
7
- const payload = await response.json();
8
-
9
- return payload;
+ return response.json();
10
}
11
12
export default fetchReleaseSchedule;
apps/site/next-data/providers/releaseSchedule.ts
@@ -1,5 +1,5 @@
1
import { cache } from 'react';
2
3
-import fetchReleaseSchedule from '#site/next-data/generators/releaseSchedule.mjs';
+import generateReleaseSchdule from '#site/next-data/generators/releaseSchedule.mjs';
-export default cache(fetchReleaseSchedule);
+export default cache(generateReleaseSchdule);
0 commit comments