I am facing a logical error. The problem is that getFeaturedPosts returns an empty array
Unanswered
Northern Shrike posted this in #help-forum
Northern ShrikeOP
I am still learning about Next.js. I am trying to build a personal blog as part of an online course. Attached are some code snippets to help understand the context better. I investigated the bug till it narrowed down to the filter function in getFeaturedPosts. getAllPosts works as expected. The markdown file is formatted and placed correctly (as far as I know). The expected result should be an array containing objects with an attribute of isFeatured: true. There are two markdown file meeting this criteria. Any help is appreciated!