diff --git a/next.config.js b/next.config.js index 0e14521b0b..f7dae5ece7 100644 --- a/next.config.js +++ b/next.config.js @@ -1,9 +1,8 @@ -const withPWA = require('next-pwa') +const withPWA = require('next-pwa')({ + disable: process.env.NODE_ENV === 'development', + dest: 'public', +}) module.exports = withPWA({ - pwa: { - dest: 'public', - disable: process.env.NODE_ENV === 'development', - }, reactStrictMode: true, }) diff --git a/yarn.lock b/yarn.lock index 4346406741..1d78a67cc2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3728,9 +3728,9 @@ natural-compare@^1.4.0: integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== next-pwa@^5.4.4: - version "5.5.5" - resolved "https://registry.yarnpkg.com/next-pwa/-/next-pwa-5.5.5.tgz#502165880fb52639b7b4ce7eca41e7797445f06a" - integrity sha512-EdheDzxr3V7piAeW2qAeH0uJW5iouSt7s/Fzz6xuvkmRPgbyqQeRY/3ZOWbhfgbPBuzGjdbBWzVurWJPH8bY5w== + version "5.6.0" + resolved "https://registry.yarnpkg.com/next-pwa/-/next-pwa-5.6.0.tgz#f7b1960c4fdd7be4253eb9b41b612ac773392bf4" + integrity sha512-XV8g8C6B7UmViXU8askMEYhWwQ4qc/XqJGnexbLV68hzKaGHZDMtHsm2TNxFcbR7+ypVuth/wwpiIlMwpRJJ5A== dependencies: babel-loader "^8.2.5" clean-webpack-plugin "^4.0.0"