···1import { deflateSync } from 'node:zlib';
23-import getReleaseData from '@/next-data/releaseData';
4import { VERCEL_REVALIDATE } from '@/next.constants.mjs';
5import { defaultLocale } from '@/next.locales.mjs';
6import type { GitHubApiFile } from '@/types';
···14// for a digest and metadata of all API pages from the Node.js Website
15// @see https://nextjs.org/docs/app/building-your-application/routing/router-handlers
16export const GET = async () => {
17- const releases = await getReleaseData();
1819 const { versionWithPrefix } = releases.find(release =>
20 ['Active LTS', 'Maintenance LTS'].includes(release.status)
···1import { deflateSync } from 'node:zlib';
23+import provideReleaseData from '@/next-data/providers/releaseData';
4import { VERCEL_REVALIDATE } from '@/next.constants.mjs';
5import { defaultLocale } from '@/next.locales.mjs';
6import type { GitHubApiFile } from '@/types';
···14// for a digest and metadata of all API pages from the Node.js Website
15// @see https://nextjs.org/docs/app/building-your-application/routing/router-handlers
16export const GET = async () => {
17+ const releases = provideReleaseData();
1819 const { versionWithPrefix } = releases.find(release =>
20 ['Active LTS', 'Maintenance LTS'].includes(release.status)