diff --git a/apps/site/next-data/changelogData.ts b/apps/site/next-data/changelogData.ts index 1d3db6f8f18bf..77baf0bbc9a37 100644 --- a/apps/site/next-data/changelogData.ts +++ b/apps/site/next-data/changelogData.ts @@ -19,7 +19,9 @@ const getChangelogData = (version: string): Promise => { // When we're on RSC with Server capabilities we prefer using Next.js Data Fetching // as this will load cached data from the server instead of generating data on the fly // this is extremely useful for ISR and SSG as it will not generate this data on every request - return fetch(`${NEXT_DATA_URL}changelog-data/${version}`).then(r => r.json()); + return fetch(`${NEXT_DATA_URL}changelog-data/${version}`) + .then(r => r.text()) + .then(JSON.parse); }; export default getChangelogData; diff --git a/apps/site/next-data/releaseData.ts b/apps/site/next-data/releaseData.ts index bbc17b8dc616b..352b2708151fc 100644 --- a/apps/site/next-data/releaseData.ts +++ b/apps/site/next-data/releaseData.ts @@ -20,7 +20,9 @@ const getReleaseData = (): Promise> => { // When we're on RSC with Server capabilities we prefer using Next.js Data Fetching // as this will load cached data from the server instead of generating data on the fly // this is extremely useful for ISR and SSG as it will not generate this data on every request - return fetch(`${NEXT_DATA_URL}release-data`).then(r => r.json()); + return fetch(`${NEXT_DATA_URL}release-data`) + .then(r => r.text()) + .then(JSON.parse); }; export default getReleaseData;