diff --git a/src/app/blog/[slug]/page.tsx b/src/app/blog/[slug]/page.tsx index 7d2554a..eb20764 100644 --- a/src/app/blog/[slug]/page.tsx +++ b/src/app/blog/[slug]/page.tsx @@ -8,7 +8,8 @@ import { notFound } from 'next/navigation' import { components } from '@/components/mdx-components' -const BLOG_PATH = path.join('src', 'contents', 'posts') +const ROOT_PATH = process.cwd() +const BLOG_PATH = path.join(ROOT_PATH, 'src', 'contents', 'posts') export interface Props { params: {