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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners