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