# Vapor: Serving Assets From The Root Domain

DevFeed: [Vapor: Serving Assets From The Root Domain](<https://devfeed.tech/articles/vapor-serving-assets-from-the-root-domain-3976.md>)

Original publisher: [Read original article](<https://laravel.com/blog/vapor-serving-assets-from-root-domain>)

Author: Nuno Maduro

Published: 2020-09-23T11:52:00Z

Content type: release

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Vapor](<https://devfeed.tech/topics/swift-vapor.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [files](<https://devfeed.tech/tags/files.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [new-feature](<https://devfeed.tech/tags/new-feature.md>), [performance](<https://devfeed.tech/tags/performance.md>), [s3](<https://devfeed.tech/tags/s3.md>)

## AI overview

Laravel Vapor now supports serving selected assets from an application's root domain, which is useful for assets such as JavaScript service workers that must share the referrer's origin. The article also describes support for treating dot files in the public directory as assets and serving them from the root domain.

## Source excerpt

Starting today, you can now serve assets from the root domain. To get started, just head over to your application's `config/vapor.php` file, and add an array of assets that should be served