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

Allow custom asset upload destinations #7811

Open
devinhalladay opened this issue Nov 13, 2024 · 1 comment
Open

Allow custom asset upload destinations #7811

devinhalladay opened this issue Nov 13, 2024 · 1 comment

Comments

@devinhalladay
Copy link

devinhalladay commented Nov 13, 2024

Is your feature request related to a problem? Please describe.
Sanity's Asset CDN is awesome, but we already use Google Cloud Storage and Cloudflare as CDN for our website. It's frustrating that we're stuck with Sanity's CDN with no option of using our own over top for asset uploads.

Describe the solution you'd like

  • Allow replacing the default Asset Upload destination with a custom one, e.g. GCP via the google-cloud/storage library
  • Ideally that might look like providing a custom upload method in my sanity form config

Describe alternatives you've considered
Not sure what alternatives are out there

@devinhalladay
Copy link
Author

More context: I built a custom plugin that adds a GCP bucket as an asset source
CleanShot 2024-11-13 at 15 55 28@2x
Arc 2024-11-13 15 55 20

It works great but I want to also support uploading images to the bucket right from Sanity, and I also want Sanity to skip uploading images from this source to its own CDN, instead using the source URL from GCP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant