-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[WIP] Next image service #5272
[WIP] Next image service #5272
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/keystonejs/keystone-next-docs/2RBJUrZPDHu9C2xhtYWwXoy4pjrx [Deployment for 99eeed5 failed] |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 5f5f730:
|
examples-next/todo/keystone.ts
Outdated
export type GraphqlImageInputType = { | ||
field: { | ||
mode: 'local' | 'cloud'; | ||
id: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably only need mode
and id
for the input type, mode
would be optional
examples-next/todo/keystone.ts
Outdated
filesize: number; | ||
}; | ||
}; | ||
export type GraphqlImageOutputType = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum ImageObjectFit { FIXED INTRINSIC RESPONSIVE FILL }
ImageOutputType {
id: ID!
extension: TEXT!
src: TEXT
width: INTEGER
height: INTEGER
blurHash: { hash: TEXT, x: INTEGER, y: INTEGER }
fileSize: INTEGER
# Mabes add this later?
transform (
# This is "whatever the Next image component accepts"
width: INTEGER
height: INTEGER
quality: INTEGER
objectFit: ObjectFit
) {
src: TEXT
width: INTEGER
height: INTEGER
}
}
This PR has been superseded by the #5396 PR 👍 |
No description provided.