How do I place a file in the root directory?

Hey

I am trying to install a service worker on my site, which requires the file to be in the root directory, how exactly do I go about this with trellis?

Place it directly in the document root — the site/web/ directory.

1 Like

Should it be in shared or current, my guess would be shared
srv/www/example.com/shared/source/site/web

It should be committed to the web folder of your bedrock site: https://github.com/roots/bedrock/tree/master/web

This is what’s served in the web root.