Skip to content

Commit

Permalink
fix(build): lint error in post
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Jan 16, 2025
1 parent 12ba89d commit 4ef00fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ prisma/generated.schema.prisma
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# Not allowed by vercel, but auto-switches pnpm to the correct node version
.npmrc
2 changes: 2 additions & 0 deletions src/pages/[post].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ interface PostQueryResult {
type MDXSource = {
compiledSource: string
scope?: Record<string, unknown>
frontmatter: Record<string, unknown>
}

// Type for tags
Expand Down Expand Up @@ -321,6 +322,7 @@ export const getStaticProps: GetServerSideProps = async function ({params}) {
authorization: process.env.SHIKI_AUTH_TOKEN!,
endpoint: process.env.SHIKI_ENDPOINT!,
},
frontmatter: {},
})

// const mdxSource = await serialize(post.fields.body, {
Expand Down

0 comments on commit 4ef00fd

Please sign in to comment.