janevalencia / nextjs-ssr-comments

Interactive Comment Sections developed using NextJS/TailwindCSS/Express-MongoDB by Jane Valencia
https://fem-comments-hucu-janevalencia.vercel.app/
2 stars 0 forks source link

Fix: Nextjs Build error on Reply schema unmatched with Interface IReply #82

Closed janevalencia closed 2 years ago

janevalencia commented 2 years ago

Description

There is a build-time error on Reply schema for the parent attribute which is a reference to a Comment schema.

Interface and FE referring the reference as string as we are only dealing with Object_ID, however, schema understands it as IComment (or Comment schema).

Hotfix has been merged.

Test passed ✅ Attempt build on local is successful Test passed ✅ Running dev-server app still working as expected

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
janev-nextjs-fem-comments ✅ Ready (Inspect) Visit Preview Sep 24, 2022 at 10:17AM (UTC)