tangled
alpha
login
or
join now
keii.dev
/
nodejs.org
The Node.js® Website
0
fork
atom
overview
issues
pulls
pipelines
chore: hotfix on `main` regarding api-data
Claudio Wunder
2 years ago
8ad8886b
19cd9f9a
+2
-2
1 changed file
expand all
collapse all
unified
split
app
[locale]
next-data
api-data
route.ts
+2
-2
app/[locale]/next-data/api-data/route.ts
···
1
1
import { deflateSync } from 'node:zlib';
2
2
3
3
-
import getReleaseData from '@/next-data/releaseData';
3
3
+
import provideReleaseData from '@/next-data/providers/releaseData';
4
4
import { VERCEL_REVALIDATE } from '@/next.constants.mjs';
5
5
import { defaultLocale } from '@/next.locales.mjs';
6
6
import type { GitHubApiFile } from '@/types';
···
14
14
// for a digest and metadata of all API pages from the Node.js Website
15
15
// @see https://nextjs.org/docs/app/building-your-application/routing/router-handlers
16
16
export const GET = async () => {
17
17
-
const releases = await getReleaseData();
17
17
+
const releases = provideReleaseData();
18
18
19
19
const { versionWithPrefix } = releases.find(release =>
20
20
['Active LTS', 'Maintenance LTS'].includes(release.status)