Skip to content

Commit 9d1188c

Browse files
committed
fix: corrected 500 errors for non-existing pages
1 parent d365e3c commit 9d1188c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/news/[year]/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { join } from 'path'
44
import PageLayout from '@/components/PageLayout'
55
import { generatePageMetadata } from '@/components/PageLayout'
66
import { Metadata } from 'next';
7+
import React from 'react';
8+
9+
export const dynamicParams = false
710

811
interface NewsYearPageProps {
912
params: Promise<{

0 commit comments

Comments
 (0)