astro/packages
Alexey Shmalko b3e65991f7
fix(image): allow usage of image from any directory (#5932)
Currently, @astrojs/image allows *importing* images from srcDir
only. Importing images from outside srcDir fails miserably *in dev
mode* and produces incorrect src.

This happens because `path.relative(fileURLToPath(config.srcDir), id)`
resolves to "../something" and when joined with '/@astroimage' cancels
it out (`join('/@astroimage', '../../something')` => `'/something'`).

Rework /@astroimage URL scheme to be similar to "/@fs/" scheme—always
export absolute path to the target file.
2023-01-30 15:29:41 -05:00
..
astro [ci] release (#6041) 2023-01-30 15:28:32 -05:00
astro-prism [ci] release (#5948) 2023-01-24 11:38:06 -05:00
astro-rss [ci] format 2023-01-24 17:57:25 +00:00
create-astro [ci] release (#5995) 2023-01-30 12:38:31 -05:00
integrations fix(image): allow usage of image from any directory (#5932) 2023-01-30 15:29:41 -05:00
markdown [ci] update lockfile (#5988) 2023-01-30 12:03:32 -05:00
telemetry [ci] release (#5948) 2023-01-24 11:38:06 -05:00
webapi [ci] release (#5948) 2023-01-24 11:38:06 -05:00