astro/packages
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
..
astro [ci] format 2023-03-07 16:38:11 +00:00
astro-prism Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
astro-rss Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
create-astro Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
integrations [@astrojs/image] Handle missing trailing slash in processStaticImage (#6421) 2023-03-07 13:00:34 -05:00
markdown [ci] format 2023-03-07 15:14:15 +00:00
telemetry Update compilation target for Node 16 (#6213) 2023-03-06 13:57:16 -05:00
webapi chore: use directive @ts-expect-error instead of @ts-ignore (#6429) 2023-03-07 13:41:24 +00:00