fix: tolerate empty posts directory with turbopackOptional

This commit is contained in:
2026-06-02 13:07:58 -05:00
parent 3fad46d9f9
commit 521f10af90

View File

@@ -25,7 +25,10 @@ export default async function PostPage({ params }: { params: Promise<{ slug: str
if (!post) notFound()
const { default: PostContent } = await import(`@/content/posts/${slug}.mdx`)
const { default: PostContent } = await import(
/* turbopackOptional: true */
`@/content/posts/${slug}.mdx`
)
return (
<>