diff --git a/.changeset/gorgeous-beds-tickle.md b/.changeset/gorgeous-beds-tickle.md new file mode 100644 index 000000000000..5be7b2c0d7d6 --- /dev/null +++ b/.changeset/gorgeous-beds-tickle.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix Invalid Input error when trying to use a custom Image Service diff --git a/packages/astro/src/core/config/schema.ts b/packages/astro/src/core/config/schema.ts index 5848222decb4..5c7a31909ad4 100644 --- a/packages/astro/src/core/config/schema.ts +++ b/packages/astro/src/core/config/schema.ts @@ -123,7 +123,7 @@ export const AstroConfigSchema = z.object({ service: z.union([ z.literal('astro/assets/services/sharp'), z.literal('astro/assets/services/squoosh'), - z.string().and(z.object({})), + z.string(), ]), }) .default({