Next-PWA offline
Unanswered
New Zealand posted this in #help-forum
New ZealandOP
Hi, i try to create an PWA with Nextjs 13 and next-pwa
Thats my next-config:
I try to build and host and then acces with my phone, i can download the PWA and it runs, while im in the same wifi or the server is running.
But as soon as i go offline the App on my Phone isnt working anymore.
Yarn Build creates js files in /build (sw.js & work..)
I tried to move them to /public/static but still doesnt work.
Do you have any Suggestions?
Thats my next-config:
/** @type {import('next').NextConfig} */
const withPWA = require('next-pwa')({
dest: 'public',
});
const nextConfig = {};
module.exports = withPWA(nextConfig);I try to build and host and then acces with my phone, i can download the PWA and it runs, while im in the same wifi or the server is running.
But as soon as i go offline the App on my Phone isnt working anymore.
Yarn Build creates js files in /build (sw.js & work..)
I tried to move them to /public/static but still doesnt work.
Do you have any Suggestions?
1 Reply
New ZealandOP
i have the same issius with vite-pwa