I’m developing a plugin and part of its functionality depends on creating “snapshots” of the content, i.e. files that contain the whole site content in JSON format.
When I first thought about it - it made complete sense to put those files under a
snapshots folder in my plugin. But then I thought - maybe they should be in the content folder. In one of my projects, the
content is a different repository and is registered as a submodule in the site. It would make sense that snapshots are tracked in that repo. Also, If you move the content folder, you would move the snapshots as well. Since they’re a reflection of that content, that would make sense too.
My question is - how to store these files without introducing potential issues with Kirby? Can I put the files in
content/__snapshots/? I tested this and no errors popped up. The “page” doesn’t appear in the panel either. It appears to be OK but I wonder if there are any hidden pitfalls.