next-pwa
next-pwa copied to clipboard
Readme not clear: pwa object mentioned, but missing in the code sample
Hi, I believe there are some confusing instructions in README regarding pwa config. It mentions pwa object and i would expect something like
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
pwa: {
// some options
}
...
}
module.exports = withPWA(nextConfig);
but the code sample that follows is putting the config options elsewhere (there is no pwa object there). Please check the attached screenshot.

The link to that part is: https://github.com/shadowwalker/next-pwa#configuration