From 4ef00fd9868ed0875f545564e30dda53cb7508dc Mon Sep 17 00:00:00 2001 From: johnlindquist Date: Thu, 16 Jan 2025 14:36:05 -0700 Subject: [PATCH] fix(build): lint error in post --- .gitignore | 2 ++ src/pages/[post].tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index b16057da7..df4d58747 100644 --- a/.gitignore +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/src/pages/[post].tsx b/src/pages/[post].tsx index 64b3c09b4..f3cdc1ad9 100644 --- a/src/pages/[post].tsx +++ b/src/pages/[post].tsx @@ -150,6 +150,7 @@ interface PostQueryResult { type MDXSource = { compiledSource: string scope?: Record + frontmatter: Record } // Type for tags @@ -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, {