Repository navigation
Support Contentful as a content source聽#173
Description
Activity
cant wait to see what next
This would be amazing!
Yes now give it to me
You are talking about amazing these will be fire bro
for once has a front-end dev i would have what it takes to make the work done
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
馃憤 +1
@tkasper Please add 馃憤 reaction to the original message to add your vote.
Saw someone give Contentlayer a shout-out on Twitter so I came to check it out. I could definitely see how support for Contentful would allow us to remove a significant amount of boilerplate needed to incorporate content in our NextJS app. Will be excited to try this out once you add support for remote sources.
Reacted by Johannes Schicklinghi everyone.
I'd love to help update the docs and contribute to the plugin. Our company is using contentful for +- 30 content types and +1000 entities and we have all the issues that @schickling talked about in Lee Robinsons interview.:
- very slow build
- content is being fetched multiple times
- too much logic in the contentful-sdk and too much coupling with contentful query language
Now, in the documentation contentful is marked as 'experimental' but going through the code, I can only find code with mocked data.
Is there anything I'm missing?
Reacted by Johannes Schickling, Rafaell Lycan and Oleg SemyonovThanks for your comment @digitalbase. I'm excited to hear you're looking forward to use Contentlayer together with Contentful. Unfortunately there isn't any update yet in regards to a production-grade Contentful content source (however you can find the experimental source code here).
Thanks Johannes @schickling , although I thought this was more going to be a way to download the Contentful posts and convert them to MDX, or am I missing something? One of the reasons I am moving to ContentLayer is to replace Contentful entirely.
I am currently doing that by combinign
contentful-export,@contentful/rich-text-html-rendererandturndown, so I can use all content with ContentLayer after some adjustments.@itsjavi The exact approach is still TBD. However, the intention is that Contentlayer makes working with a content source easier, not that it replaces the source.
The approach you're taking to replace Contentful sounds like a good one, and should also work nicely with Contentlayer.
Reacted by Javi AguilarI totally by accident found out about contentlayer and when i saw an example code in the introductory blog post with processing MD content and how easy it is to achieve same with Contentlayer, i shed a tear!
Can't wait for contentful adapter to be released to use contentlayer for my portfolio website.
currently running a blog using nextjs and contentful, would love to see contentlayer on top of contentful with type safe
I have voted for Contentful as a content source. Done it
馃憖
We are already planning to implement Contentful support. However, you can help us prioritize this work by clicking the 馃憤 emoji below to add your vote.