In the latest release of Vapor, we've made it possible for you to serve your assets via a custom domain. Vapor serves assets from CloudFront, the AWS content delivery network (CDN), which results in asset URLs in the format https://d37avf8eihbcxt.cloudfront.net/.... While this certainly works well for many applications, we've listened to feedback from customers wishing to have their asset URLs "on-brand" by leveraging CloudFront domain aliases. Like custom application domains, the first step to serving your assets from a custom domain is requesting an SSL certificate for that domain.
Furthermore, Vapor injects the relevant environment variables for the https://docs.vapor.build/1.0/projects/deployments.html#assets and Vite asset compilation process to ensure your assets are served from your custom asset domain seamlessly.