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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners