Skip to content

Commit

Permalink
chore: hotfix on main regarding api-data
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Feb 29, 2024
1 parent 19cd9f9 commit 8ad8886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/[locale]/next-data/api-data/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { deflateSync } from 'node:zlib';

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

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

0 comments on commit 8ad8886

Please sign in to comment.