Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
🐛 Fixed the error with next build
Browse files Browse the repository at this point in the history
  • Loading branch information
paveg committed Mar 17, 2024
1 parent 3c0ded3 commit 021647e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { allPosts } from "@/.contentlayer/generated"
import { PostNotFound } from "@/components/post-not-found"

export default function Home() {
console.info(allPosts.length)
if (allPosts.length === 0) {
return <PostNotFound />
}
Expand Down
14 changes: 7 additions & 7 deletions components/mdx-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ const Image = (props: ImageProps) => {

const components = {
Image,
h1: CustomH1,
h2: CustomH2,
h3: CustomH3,
h4: CustomH4,
h5: CustomH5,
h6: CustomH6,
a: CustomLink
CustomH1,
CustomH2,
CustomH3,
CustomH4,
CustomH5,
CustomH6,
CustomLink
}

interface MdxProps {
Expand Down

0 comments on commit 021647e

Please sign in to comment.