Skip to content
Discussion options

You must be logged in to vote

I would suggest not using next-pwa any more.

My solution was to put the manifest.json along with all the icon sizes you want, and the sw.js in the public foldder...

then created an app.js for service workers in the public folder......

then inside my _app.js in the pages folder called the manifest and the service workers like this:

<Head>
          <link rel="manifest" href="/manifest.json" />
other head stuff here...
<Head/>

then on the bottom of the _app.js page called the service workers like this:
<script async type="module" src="app.js"></script>

and it worked...

Gotta do a few more little additions/fixes for the PWA but it is working...

You can dig the code out in here:
https://gith…

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@anishFE
Comment options

@helderpgoncalves
Comment options

Answer selected by Elindo586
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants