Skip to content

Commit

Permalink
fix(assets): Fix usage of custom service resulting in Invalid Input e…
Browse files Browse the repository at this point in the history
…rror (#6556)
  • Loading branch information
Princesseuh authored Mar 15, 2023
1 parent 035c0c4 commit 22955b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-beds-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix Invalid Input error when trying to use a custom Image Service
2 changes: 1 addition & 1 deletion packages/astro/src/core/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 22955b8

Please sign in to comment.