diff --git a/bun.lockb b/bun.lockb index 6037c17..a93b294 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 6eadb98..db58ba1 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@radix-ui/react-scroll-area": "^1.1.0", "@radix-ui/react-slot": "^1.1.0", "@types/mdx": "^2.0.13", - "caniuse-lite": "^1.0.30001649", + "caniuse-lite": "^1.0.30001651", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", "glob": "^11.0.0", diff --git a/src/app/p/[slug]/page.tsx b/src/app/p/[slug]/page.tsx index 2214641..c276fab 100644 --- a/src/app/p/[slug]/page.tsx +++ b/src/app/p/[slug]/page.tsx @@ -1,6 +1,6 @@ import fs from 'fs'; import path from 'path'; -import glob from 'glob'; +import { glob } from 'glob'; import { remark } from 'remark'; import html from 'remark-html'; @@ -22,7 +22,7 @@ interface ProjectPageProps { const Page = async ({ params }: ProjectPageProps) => { const { slug } = params; - const filePath = path.join(process.cwd(), 'public', 'projects', `${slug}.md`); + const filePath = path.join(process.cwd(), 'public', 'p', `${slug}.md`); const fileContent = fs.readFileSync(filePath, 'utf8'); const processedContent = await remark().use(html).process(fileContent);