-
Notifications
You must be signed in to change notification settings - Fork 274
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
feat: add prismic provider #269
Conversation
Thanks for the review! Addressed your suggestions, wasn't aware of those new utilities on UFO. Looks better like that! Let me know if anything else~ |
|
||
Integration between [Prismic](https://prismic.io/docs) and the image module. | ||
|
||
To use this provider you just need to specify an empty object at `prismic` key in Nuxt Image options object. |
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.
Something along the lines of:
To use this provider you just need to specify an empty object at `prismic` key in Nuxt Image options object. | |
No specific configuration is required for Prismic support. You just need to specify `provider: 'prismic'` in your configuration to make it the default, or pass it directly when you need it, for example: | |
```html | |
<nuxt-img provider="prismic" src="..." /> |
Co-authored-by: Daniel Roe <[email protected]>
src, | ||
{ modifiers = {}, baseURL = PRISMIC_IMGIX_BUCKET } = {} | ||
) => { | ||
const operations = operationsGenerator(modifiers) |
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.
Perf: We serialize
modifiers to operations
and use parseQuery
in return statement! (postponing since it is mostly a utility refactor for all providers with operationsGenerator
)
Types of changes
Description
Add Prismic provider~ cc @pi0
closes #150
Checklist: