fix(assets): Fix usage of custom service resulting in Invalid Input error (#6556)

This commit is contained in:
Erika 2023-03-15 16:21:13 +01:00 committed by GitHub
parent 035c0c4df2
commit 22955b895c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix Invalid Input error when trying to use a custom Image Service

View file

@ -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({