You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using contentlayer with MDX for a blog and it is working pretty well, but recently i would like to use it in a vercel edge function as well. Edge functions have a bundle size limit of 1mb, which is achieved quite quickly with contentlayer and MDX. I've written about the problem and my workaround here. It would be nice if some better solution would be backed into contentlayer.
A few possible solutions come to my mind.
Split the body from the rest of the content and load it on demand with an async function on the entity
Option to create a separate collection of the entity without body
Hooks which makes it easy to write a separate collection without body on every change
The text was updated successfully, but these errors were encountered:
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.
I'm using contentlayer with MDX for a blog and it is working pretty well, but recently i would like to use it in a vercel edge function as well. Edge functions have a bundle size limit of 1mb, which is achieved quite quickly with contentlayer and MDX. I've written about the problem and my workaround here. It would be nice if some better solution would be backed into contentlayer.
A few possible solutions come to my mind.
The text was updated successfully, but these errors were encountered: