0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/.changeset/sixty-oranges-walk.md
Matt Kane 10a756ad87
fix: treat images with initial slash as local, and resolve with vite (#12030)
* fix: allow images with absolute path

* Add mroe tests

* changeset
2024-09-19 14:33:27 +01:00

480 B

astro
patch

Resolves image paths in content layer with initial slash as project-relative

When using the image() schema helper, previously paths with an initial slash were treated as public URLs. This was to match the behavior of markdown images. However this is a change from before, where paths with an initial slash were treated as project-relative. This change restores the previous behavior, so that paths with an initial slash are treated as project-relative.