From aadd63634bc5cc5c045e2eaf0b8584b262df0601 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Fri, 14 Feb 2025 11:20:10 +0100 Subject: [PATCH] Update page.tsx --- web/app/guides/[slug]/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/guides/[slug]/page.tsx b/web/app/guides/[slug]/page.tsx index b448677..fe71495 100644 --- a/web/app/guides/[slug]/page.tsx +++ b/web/app/guides/[slug]/page.tsx @@ -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 } } ) } +