Netlify site name: toki81.netlify.app
So I am using remix.run and have my application deploying via GitHub rather than directly through the Netlify-cli. Not sure it will make a difference or not.
So when I run locally the service worker shows within the network tab on developer tools and all is ok.
When I deploy to Netlify it does not show up. Although the sw.js is present in the root folder along with the manifest.json. It is not registering for some reason inside the app?
The SW is added from entry.client.tsx in the application.
But I have no idea why it does not register when in production on Netlify?
This is the contents of the .toml file if it helps?
[build] command = "remix build" functions = "netlify/functions" publish = "public" [dev] command = "remix watch" port = 3000 [[redirects]] from = "/*" to = "/.netlify/functions/server" status = 200 [[headers]] for = "/build/*" [headers.values] "Cache-Control" = "public, max-age=31536000, s-maxage=31536000"