-
Notifications
You must be signed in to change notification settings - Fork 288
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(uploadcare): omit base when resolved URL is returned #1254
Conversation
Problem: There is no option to provide a full link in the src attribute. It is either the custom cdnURL or the default as a prefix. It would be nice to have an option in the nuxt.config.js where if cndURL is false, there is no URL prefix.
If you pass |
Sadly, not.. the generated url will look like this: |
Please let me know if there is anything I can do :) |
seems to work fine for me https://stackblitz.com/edit/github-kzrcuy?file=nuxt.config.ts,app.vue |
Closing as I can't reproduce the original bug and I believe this feature is already implemented, but please do feel free to provide a reproduction of the original issue and we can definitely reopen. |
Sorry for the late response! As you can see, a " / " is always added at the start. {
"imageUrl": "https://ucarecdn.com/ed47ee7c-e0c6-41b3-9536-debcfd81afa1/"
} Solution: |
Hey @danielroe , feel free to let me know if I need to clarify a bit more ;) |
Oh, I see - if the returned data from CDN already has a protocol. I think the fix instead should be simply not to prefix with We can test with utilities provided from |
Problem:
There is no option to disable the URL prefix in the UploadCare settings.
It would be nice to have an option in the nuxt.config.js where if cndURL is false, there is no URL prefix.