next-pwa icon indicating copy to clipboard operation
next-pwa copied to clipboard

Readme not clear: pwa object mentioned, but missing in the code sample

Open ezekiel747 opened this issue 2 years ago • 0 comments

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.

image

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

ezekiel747 avatar Dec 10 '22 19:12 ezekiel747