File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { notFound } from 'next/navigation' ;
12import type { FC } from 'react' ;
23
34import { 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 } /> ;
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments