Skip to content

Commit 8ad8886

Browse files
committed
chore: hotfix on main regarding api-data
1 parent 19cd9f9 commit 8ad8886

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/[locale]/next-data/api-data/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { deflateSync } from 'node:zlib';
22

3-
import getReleaseData from '@/next-data/releaseData';
3+
import provideReleaseData from '@/next-data/providers/releaseData';
44
import { VERCEL_REVALIDATE } from '@/next.constants.mjs';
55
import { defaultLocale } from '@/next.locales.mjs';
66
import type { GitHubApiFile } from '@/types';
@@ -14,7 +14,7 @@ const getPathnameForApiFile = (name: string, version: string) =>
1414
// for a digest and metadata of all API pages from the Node.js Website
1515
// @see https://nextjs.org/docs/app/building-your-application/routing/router-handlers
1616
export const GET = async () => {
17-
const releases = await getReleaseData();
17+
const releases = provideReleaseData();
1818

1919
const { versionWithPrefix } = releases.find(release =>
2020
['Active LTS', 'Maintenance LTS'].includes(release.status)

0 commit comments

Comments
 (0)