-
Im using next-pwa for my app to work with service worker. here are my const withPwa = require("next-pwa")
module.exports = withPwa({
reactStrictMode: true,
pwa: {
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === 'development'
}
}) |
Beta Was this translation helpful? Give feedback.
Answered by
aralroca
Dec 15, 2021
Replies: 1 comment
-
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) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rimzzlabs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, try this: