Option for globally specifying external image URLs to cloud providers #1708
hdodov
started this conversation in
Feature Requests & Ideas
Replies: 1 comment 2 replies
-
Hey @hdodov — this is the default behaviour of the cloud plugin, but you can actually disable this and have your URLs point directly to your cloud storage if you'd like. Documented here: Will you give that a shot and let me know if this resolves what you're looking to do? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use the official
@payloadcms/plugin-cloud-storage
plugin to host my images on Amazon S3. I've also set up theadminThumbnail
option to load thumbnails directly from S3:However, this works only for the
src
attribute of<img>
tags in the admin. Links are not pointing to S3:And, more importantly, URLs in the JSON API point to the server, as specified in the
serverURL
option, rather than S3:Ideally, I should be able to specify the URL of my bucket and have Payload use it everywhere, for everything. Otherwise, Payload has to proxy these images, which will unnecessarily increase the server load. The only benefit I can think of is that Payload's auth mechanisms can kick in and deny access, but those images are publicly accessible and that's not relevant.
Beta Was this translation helpful? Give feedback.
All reactions