Skip to content

config file with next-pwa #751

Answered by aralroca
rimzzlabs asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, try this:

const nextTranslate = require("next-translate")
const withPwa = require("next-pwa")

const pwaConfig = withPwa({
reactStrictMode: true,
 pwa: {
    dest: 'public',
    register: true,
    skipWaiting: true,
    disable: process.env.NODE_ENV === 'development'
  }
})

module.exports = nextTranslate(pwaConfig)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rimzzlabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #750 on December 15, 2021 16:51.