contentlayerdev/contentlayer

Using next-contentlayer along aside a next-sanity proejct stops sanity's from loading

elvis-ndubuisi opened this issue · 1 comments

After i completed next-contentlayer setup in a project with sanity studio embedded, the project builds on vercel but snaity studio no longer loads. After weeks of package downgrades and testing, i noticed the issue gets resolved with i remove the withContentLayer from next.config.js file.

Here are the build logs with contentlayer enabled in next.config
Screenshot 2024-01-26 013131

Here's the next.config file
Screenshot 2024-01-26 013243

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.