In a project’s settings, I noticed I can use a custom domain. A client then requested it, so we have added a CNAME pointing to admin.datocms.com with a value of admin so it’d be accessible at admin.vjraystrata.com.au. This was set mid-last week.
Actually, what the client wishes for is that asset URLs are seen to be related to the business.
Updating their Dato URL isn’t going to change that, is it?
For example, they want something like https://dato.vjraystrata.com.au/14001/1564024265-steven-coffey-e26tf5jpcmi-unsplash-cut.jpg instead of https://www.datocms-assets.com/14001/1564024265-steven-coffey-e26tf5jpcmi-unsplash-cut.jpg
I guess that’s not possible. But I’ll ask anyways…
But it’s an “enterprise” feature normally. We can add that to the Pro plan, but it will have an extra setup cost. If you are interested plese be in touch at https://www.datocms.com/support/
About the DNS instead I’ve just tested myself now and the CNAME for admin.vjray.com.au is pointing to alias.zeit.co are you sure? The panel you are showing is for another domain (and the CNAME is not responding as expected here as well).
@callum Another option, if your client is desperate for a vanity asset domain, is to proxy through Netlify. Their rate for bandwidth is ok as long as your project isn’t too big.
I had a long discussion with Netlify support on the pros and cons of this and it will work but basically you’re fighting for space in their edge node caches, so depending on how frequently your assets are hit, Netlify may serve a cache miss every time. Then again I’m not sure whether the dynamics are much different using Imgix directly (just no second fetch from Imgix › Netlify), so it may be a workable solution. You’d have to set it up and measure latency etc to find out whether it would work for you.
The other aspect to this that you should bear in mind is that if your site isn’t popular enough that requests for its assets are hitting Netlify’s cache, since Netlify will hit Dato’s Imgix instance in addition to the latency of the extra request you’ll be paying double for bandwidth.
It was at about this point that I gave up and just used the regular shared assets domain. Depending on your use case, you could suck in assets at various standard sizes from Dato’s Imgix instance during your build process, and host them with the rest of your site.