Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

Princesseuh
Copy link
Member

@Princesseuh Princesseuh commented Mar 15, 2023

Changes

I unnecessarily tried to think like TS in Zod when I didn't need to since we don't use the schema anyway to do the types, oops.

Fix #6545

Testing

Tested manually

Docs

N/A

@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2023

🦋 Changeset detected

Latest commit: 83804a1

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Mar 15, 2023
@@ -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(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look, I tried to be too smart, it happens

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 :)

@Princesseuh Princesseuh marked this pull request as ready for review March 15, 2023 13:34
@Princesseuh Princesseuh merged commit 22955b8 into main Mar 15, 2023
@Princesseuh Princesseuh deleted the fix/image-service branch March 15, 2023 15:21
@astrobot-houston astrobot-houston mentioned this pull request Mar 15, 2023
@tpiros
Copy link

tpiros commented Mar 21, 2023

which release will this be part of @Princesseuh?

@Princesseuh
Copy link
Member Author

which release will this be part of @Princesseuh?

2.1.4, this PR: #6541

@tpiros
Copy link

tpiros commented Mar 21, 2023

awesome, can't wait to test it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defining a custom, external Image service
3 participants