fix: get the root path with process.cwd()

This commit is contained in:
Refansa 2024-08-04 00:09:40 +07:00
parent 4ed056f744
commit 54c7452244

View File

@ -8,7 +8,8 @@ import { notFound } from 'next/navigation'
import { components } from '@/components/mdx-components' 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 { export interface Props {
params: { params: {