0 votes
121 views
in HTML by (3.5k points)
edited
Progressive Web App

1 Answer

0 votes
by (3.5k points)
selected by
 
Best answer
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?

Related questions

0 votes
1 answer 111 views
0 votes
1 answer 132 views
0 votes
1 answer 122 views
0 votes
1 answer 238 views
0 votes
1 answer 114 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

557 users

...