Skip to content

Commit 03b2a93

Browse files
committed
chore: release check added
1 parent a9d550f commit 03b2a93

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/site/components/withDownloadArchive.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { notFound } from 'next/navigation';
12
import type { FC } from 'react';
23

34
import { getClientContext } from '#site/client-context';
@@ -32,6 +33,10 @@ const WithDownloadArchive: FC<WithDownloadArchiveProps> = async ({
3233
version.startsWith(`v${release.major}`)
3334
)!;
3435

36+
if (!release) {
37+
return notFound();
38+
}
39+
3540
const releaseArtifacts = buildReleaseArtifacts(release, version);
3641

3742
return <Component {...releaseArtifacts} />;

apps/site/redirects.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,6 @@
332332
"source": "/:locale/download/source-code/current",
333333
"destination": "/:locale/download/current"
334334
},
335-
{
336-
"source": "/:locale/download/archive",
337-
"destination": "/:locale/download/archive/current"
338-
},
339335
{
340336
"source": "/discord",
341337
"destination": "https://discord.gg/nodejs"

0 commit comments

Comments
 (0)