next-saas-stripe-starter icon indicating copy to clipboard operation
next-saas-stripe-starter copied to clipboard

Migrate from contentlayer to content-collections

Open paulgrammer opened this issue 1 year ago • 1 comments

Issue

On macOS, encountered a critical build issue with Contentlayer where the build process would hang indefinitely at: Contentlayer config change detected. Updating type definitions and data...

Multiple attempted fixes were unsuccessful. This is a known issue tracked at haydenbleasel/next-forge#50 with no current resolution.

Solution

Migrated to Content Collections as a viable alternative. Content Collections provides similar functionality while avoiding the build issues present in Contentlayer.

Changes

  • Removed Contentlayer configuration and dependencies
  • Implemented Content Collections for content management
  • Updated content processing logic
  • Migrated existing content to new structure

Testing

  • Verified build process completes successfully on macOS
  • Confirmed content is properly rendered
  • Tested content updates and rebuilds

paulgrammer avatar Oct 26 '24 14:10 paulgrammer