From 83804a1fafde05b8447f014d5e17e1efec94adeb Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Wed, 15 Mar 2023 14:33:12 +0100 Subject: [PATCH] fix(assets): Fix usage of custom service resulting in Invalid Input error --- .changeset/gorgeous-beds-tickle.md | 5 +++++ packages/astro/src/core/config/schema.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/gorgeous-beds-tickle.md 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({