Hello all! I was working on a PWA and came across an issue, and I’m not sure if others have bumped into this either.
Upon adding app.js and sw.js to my project to register a service worker. It seems that sw.js needs to be at the root of my domain, as described in multiple tutorials I have watched, and read. However, I can’t seem to figure out a way to move sw.js to the root as it stays locked in original folder " www.[domainName].com/assets/js/sw.js " when I need to be in " www.[domainName].com/sw.js ".
It is hosted through Bootstrap Studio on Cloudflare.
Any help would be gladly appreciated. If it’s not possible, then I understand and can manage without it.
I should have added a question mark somewhere. But is there a way to place a JavaScript file at the root of the domain using just Bootstrap Studio as my host?