Skip to content

Need to access service worker file as /sw.js #291

@michaelu123

Description

@michaelu123

I want to install wegue as a Progressive Web App, mainly, so that it runs also in offline mode. I can put all the tiles into the static folder. But I do not know how to put the service worker js file sw.js into the root directory, besides index.html. When I try to access the URL with /sw.js, I get a 404 error. I can put it into the static dir, so I can access /static/sw.js, but then /index.html is not in the scope of the service worker, and /index.html is not cached by the service worker, so the app can not run in offline mode.
What I need is a Vue route to /sw.js, but I do not know how this can be done with Wegue, as I can not see any routing code anywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions