0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations
Vincent Tavernier e58a92527f
[@astrojs/image] Handle missing trailing slash in processStaticImage (#6421)
The code path changed by this commit isn't only taken when running using Vite. If the site is configured with a base url which is different from `/` but does **not** end with `/` (for example, because `trailingSlash` is set to `never`), the `- 1` results in an off-by-one error when truncating the URL.

By checking if the base url ends with `/`, we can determine the right length for the prefix to truncate.
2023-03-07 13:00:34 -05:00
..
alpinejs Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
cloudflare Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
deno chore: use directive @ts-expect-error instead of @ts-ignore (#6429) 2023-03-07 13:41:24 +00:00
image [@astrojs/image] Handle missing trailing slash in processStaticImage (#6421) 2023-03-07 13:00:34 -05:00
lit Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
mdx Implement RFC "A core story for images" (#6344) 2023-03-07 16:12:21 +01:00
netlify chore: use directive @ts-expect-error instead of @ts-ignore (#6429) 2023-03-07 13:41:24 +00:00
node chore: use directive @ts-expect-error instead of @ts-ignore (#6429) 2023-03-07 13:41:24 +00:00
partytown Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
preact chore: use directive @ts-expect-error instead of @ts-ignore (#6429) 2023-03-07 13:41:24 +00:00
prefetch Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
react Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
sitemap Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
solid Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
svelte Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
tailwind Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
turbolinks Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
vercel Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
vue Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00