SR
Click to open github profile
Functions

getCraftContentMapping

Learn how to get the contentMapping with getCraftContentMapping.


If you just need the content mapping, you can use the getCraftContentMapping function:

const contentMapping = getCraftContentMapping()

Return Type

type ContentMapping = {
  pages:
  {
    [key: string]: React.ElementType
    page404: React.ElementType
    page500: React.ElementType
    error: React.ElementType
  }
  components: {
    [key: string]: React.ElementType
  }
}

Copyright © 2025 Samuel Reichör