0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-03 22:57:08 -05:00
astro/.changeset/four-rats-fail.md
Chris Swithinbank 9f943c1344
Fix file loader for JSON object files (#11801)
* Add `filePath` to `file()` loader entries when JSON file is an object

* Add changeset
2024-08-21 12:17:52 +01:00

296 B

astro
patch

Fixes a bug where the filePath property was not available on content collection entries when using the content layer file() loader with a JSON file that contained an object instead of an array. This was breaking use of the image() schema utility among other things.