mirror of
https://github.com/storytold/craft-wiki.git
synced 2026-11-19 05:51:01 +01:00
The VectorCraft collection's Card picture field had no folder of its own, so the editor saved an uploaded picture to public/assets/uploads/ and wrote /assets/uploads/<file> into the page's cover field. The content schema only accepts a cover under /assets/uploads/<app>/, so a page saved with such a cover failed the build. The field now sets media_folder and public_folder to the vectorcraft folder. scripts/cms-config.test.mjs checks that every collection with a cover field uploads to the folder the schema accepts, and npm run test:coverage runs it.