Skip to content

Commit

Permalink
Docs: astro-images: Add help notice on case sensitivity of glob
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans authored Dec 6, 2024
1 parent e65e7f3 commit f509593
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/content/pages/recipes/astro-images.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,8 @@ captionImage: block({
})
```

Read the [Astro guide on dynamic image imports](https://docs.astro.build/en/recipes/dynamically-importing-images/) for details on the implementation.
Read the [Astro guide on dynamic image imports](https://docs.astro.build/en/recipes/dynamically-importing-images/) for details on the implementation.

{% aside icon="☝️" %}
Reminder: The `glob` string is case-sensitive, so you need to include patterns like `import.meta.glob('/src/assets/*.{jpeg,jpg,JPEG,JPG}')` because Keystatic does not change the capitalization of file extensions during upload.
{% /aside %}

0 comments on commit f509593

Please sign in to comment.