SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.2k stars 407 forks source link

Add support for CDN for Spina::Parts::Image and Attachment #1353

Closed Bramjetten closed 9 months ago

Bramjetten commented 11 months ago

ActiveStorage requires setting a custom host if you want to use a CDN. We already have a list of resolve calls in routes.rb to handle urls for Spina::Parts::Image and Spina::Parts::ImageVariant.

We can add options.merge(host: Spina.config.cdn_host) or something similar to easily add support for CDNs.

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.