Skip to content

Commit b60d540

Browse files
fixed bug
Signed-off-by: JAYANTJOSHI001 <[email protected]>
1 parent e4acc61 commit b60d540

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/blog/[slug]/page.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,9 @@ const posts: Record<string, Post> = {
9191

9292
export default function BlogPost({ params }: { params: { slug: string } }) {
9393
const post = posts[params.slug]
94-
95-
if (!post) {
96-
notFound()
97-
}
94+
if (!post) {
95+
return { notFound: true }
96+
}
9897

9998
return (
10099
<div className="bg-gradient-to-br from-purple-50 via-white to-purple-100 dark:from-gray-900 dark:via-gray-800 dark:to-purple-900 bg-texture">

0 commit comments

Comments
 (0)