0 votes
126 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 118 views
0 votes
1 answer 137 views
0 votes
1 answer 125 views
0 votes
1 answer 242 views
0 votes
1 answer 120 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

561 users

...