asset_hash not working with css_dir

In config.rb I’ve set:

configure :build do
    activate :asset_hash

    set :css_dir, '//css.domain.com'
    set :js_dir, '//js.domain.com'
    set :images_dir, '//img.domain.com'

However, when I use stylesheet_link_tag or javascript_include_tag, it’s not including the fingerprinting hashes in the url. It only includes my CDN prefixes. What am I doing wrong?

Alternatively, how do I get asset_hash to include the CDN prefixes? This would be better since it also rewrites links inside the assets as well.

I didn’t find anything in the docs regarding this either. Maybe i’m just a bit blind, but i found that you just can add this to your config instead, and it works with the asset hashes:

  activate :asset_host
  set :asset_host, "http://cdn.url.com"

Yes! I did eventually find that call, but I forgot to reply here when I did. You’re not blind, I couldn’t find it either at the time. Thank you so much for replying! Hopefully, it’ll save others time down the road.