hanford / next-offline

make your Next.js application work offline using service workers via Google's workbox
https://github.com/hanford/next-offline
1.59k stars 111 forks source link

Question : static site and next-offline #248

Closed x4080 closed 4 years ago

x4080 commented 4 years ago

Hi, Firstly I already use your plugin for regular next js app and works perfectly, and I just started playing with creating static site using npm run build then npm run export, and I cant get the install button, Is it correct that I put the manifest file in "out" dir ? Or I should create public/static folder inside it ?

Seems service worker is available but install button not appears

Thanks

x4080 commented 4 years ago

Ok, I found the problem : Must create _app.js and add (if wanted manifest inside static folder)

Solve it