Minor Changes
-
#6703
a1108e037
Thanks @Princesseuh! - Moveimage()
to come fromschema
instead to fix it not working with refine and inside complex typesMigration:
Remove the
image
import fromastro:content
, and instead use a function to generate your schema, like such:import { defineCollection, z } from 'astro:content'; defineCollection({ schema: ({ image }) => z.object({ image: image().refine((img) => img.width >= 200, { message: 'image too small', }), }), });
-
#6714
ff0430786
Thanks @bluwy! - Addbuild.assetsPrefix
option for CDN support. If set, all Astro-generated asset links will be prefixed with it. For example, setting it tohttps://cdn.example.com
would generatehttps://cdn.example.com/_astro/penguin.123456.png
links.Also adds
import.meta.env.ASSETS_PREFIX
environment variable that can be used to manually create asset links not handled by Astro.
Patch Changes
-
#6753
489dd8d69
Thanks @bluwy! - FixgetViteConfig
return type -
#6744
a1a4f45b5
Thanks @Princesseuh! - Fix remote images in Markdown throwing errors when usingexperimental.assets
-
#6762
8b88e4cf1
Thanks @Princesseuh! - Improved error message when an error was encountered while generating types -
#6719
d54cbe413
Thanks @matthewp! - Better errors for when response is already sentThis adds clearer error messaging when a Response has already been sent to the browser and the developer attempts to use:
- Astro.cookies.set
- Astro.redirect
-
#6741
4c347ab51
Thanks @Princesseuh! - Fix content-type header being wrong in dev on images fromastro:assets
-
#6739
2f2e572e9
Thanks @Princesseuh! - Added more types and utilities exports related toastro:assets
to help building custom image components and image services -
Updated dependencies [
a1a4f45b5
]:- @astrojs/[email protected]