How do I store custom block content as configuration? I'm creating custom pages using Pages + Layout Builder. These layouts need to be stored in GIT as config files (drush cex). Currently, the layouts themselves are stored fine.
The main problem is that custom block contents are stored in the database and if someone clones the repository and applies changes using drush cim, they are missing the block contents.
Then don't use custom block types because they are stored in content entities.
Use blocks storing only configuration. You can build a custom block plugin, even with a body field. See Custom block build function to display wysiwyg body text
There are also some contrib options like Simple Block which is implementing a config entity for blocks.