Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
soohoonc committed Aug 19, 2024
1 parent ce9eb52 commit 6034889
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/app/p/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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);
Expand Down

0 comments on commit 6034889

Please sign in to comment.