mihaic195 Do you see any errors in the console? What isn't working? Are you getting errors and the image won't display? You may need to install the imagemagick library for the variants.
David Kimura with Variants, the link looks like this: variants/rsoao6al0qs6i7ufbzm5x2nw4hr1/cabe6e2a3218e12456787572cfb5ee71459383cdd72e19a0f5bacea3b3987208 which yields a 403 from Cloudfront. I have the image_processing gem installed.
variants/rsoao6al0qs6i7ufbzm5x2nw4hr1/cabe6e2a3218e12456787572cfb5ee71459383cdd72e19a0f5bacea3b3987208
which yields a 403 from Cloudfront.
I have the image_processing gem installed.
After a few minutes, if you find this working, you can then start narrowing down the CORS rules if needed.
all I had to do is call processed on the image to create the variant, which is still weird to me. Now the CDN link also works.
Thank you!
Serving ActiveStorage uploads through a CDN with Rails direct routes
ActiveStorage makes it really easy to upload files from Rails to an S3 bucket or an S3-compatible ser...
https://dev.to/lipanski/serving-activestorage-uploads-through-a-cdn-with-rails-direct-routes-3nc2