Skip to content
Ning's Blog
Go back

Astro Image In Content

Today I learned you can inline remote images in Astro content collections using the image() schema helper. No more manual imports.

schema: ({ image }) =>
  z.object({
    ogImage: image().optional(),
  });

Game changer for authoring ergonomics.