I’m installing the Kirby CDN Plugin and putting it in site > plugins > cdn. I’m then putting these lines in my config:
c::set('cdn.assets', 'http://cdn.[my-domain].com/assets'); c::set('cdn.content', 'http://cdn.[my-domain].com/content'); c::set('cdn.thumbs', 'http://cdn.[my-domain].com/thumbs');
The assets (css/js/fonts) are coming from the CDN correctly as are images in the content folder.
I’m having an issue serving thumbs from the CDN though.
In a template I’m grabbing the image like this:
$image = $page->image_mobile()->toFile();
I’m then calling the specified width like this:
$image->width(375)->url();
The output does not give the CDN url, only the regular one. The same happens when I use the thumb method too.
Has anyone else experienced this? Does anyone have a solution? Have I missed something glaringly obvious?
Thanks!
Chris