Update page.tsx

This commit is contained in:
MacRimi 2025-02-14 11:20:10 +01:00 committed by GitHub
parent 7f8bd86c5c
commit aadd63634b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@ import path from "path"
import { remark } from "remark"
import html from "remark-html"
const guidesDirectory = path.join(process.cwd(), "guides")
const guidesDirectory = path.join(process.cwd(), "..", "guides")
async function getGuideContent(slug: string) {
const fullPath = path.join(guidesDirectory, `${slug}.md`)
@ -44,3 +44,4 @@ export default async function GuidePage({ params }: { params: { slug: string } }
)
}