I was wanting to play with https://contentlayer.dev/ and see if I could get something working as a POC quickly…

It seems https://nx.dev has gotten me again. Contentlayer needs your tsconfig to have a baseUrl: "." and that seems to make things go ary. I did set it and “building” is happy but at runtime I’m getting a @neondatabase\serverless error:

Cannot read properties of undefined (reading ‘Client’)

I really want to use Contentlayer to have an all in one website: dynamic website + static-ish blog. It seems I need to choose between nx.dev or not trust this shiny new software…

Update: I just saw that the last commit was 8 months ago and that there was an issue not supporting Next 14. Definitely too shiny, I need to not mess with this.

image.png