fix(assets): Fix usage of custom service resulting in Invalid Input error (#6556)
This commit is contained in:
parent
035c0c4df2
commit
22955b895c
2 changed files with 6 additions and 1 deletions
5
.changeset/gorgeous-beds-tickle.md
Normal file
5
.changeset/gorgeous-beds-tickle.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix Invalid Input error when trying to use a custom Image Service
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue