astro/packages/integrations
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
..
alpinejs [ci] release (#5995) 2023-01-30 12:38:31 -05:00
cloudflare [ci] release (#6041) 2023-01-30 15:28:32 -05:00
deno [ci] release (#6041) 2023-01-30 15:28:32 -05:00
image fix(image): allow usage of image from any directory (#5932) 2023-01-30 15:29:41 -05:00
lit [ci] release (#5995) 2023-01-30 12:38:31 -05:00
mdx [ci] release (#5995) 2023-01-30 12:38:31 -05:00
netlify [ci] release (#6041) 2023-01-30 15:28:32 -05:00
node [ci] release (#6041) 2023-01-30 15:28:32 -05:00
partytown [ci] release (#5948) 2023-01-24 11:38:06 -05:00
preact [ci] release (#5995) 2023-01-30 12:38:31 -05:00
prefetch [ci] release (#5995) 2023-01-30 12:38:31 -05:00
react [ci] release (#5995) 2023-01-30 12:38:31 -05:00
sitemap [ci] release (#5995) 2023-01-30 12:38:31 -05:00
solid [ci] release (#5995) 2023-01-30 12:38:31 -05:00
svelte [ci] release (#6041) 2023-01-30 15:28:32 -05:00
tailwind [ci] release (#6041) 2023-01-30 15:28:32 -05:00
turbolinks [ci] release (#5995) 2023-01-30 12:38:31 -05:00
vercel [ci] release (#6041) 2023-01-30 15:28:32 -05:00
vue [ci] release (#6041) 2023-01-30 15:28:32 -05:00