From 7d69732dc23e0122dfe0e441a9282073ba57780b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 29 Oct 2022 04:06:19 +0000 Subject: [PATCH] build(deps): update dependency next-pwa to ^5.6.0 (#1376) * build(deps): update dependency next-pwa to ^5.6.0 * Update next.config.js Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Yamagishi Kazutoshi --- next.config.js | 15 +++++++++------ package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/next.config.js b/next.config.js index 6e483101..625ee3ce 100644 --- a/next.config.js +++ b/next.config.js @@ -1,16 +1,19 @@ -const withPWA = require('next-pwa') +const nextPWA = require('next-pwa') const headers = require('./headers.json') const rewrites = require('./rewrites.json') +const withPWA = nextPWA({ + dest: '.next/static', + disable: process.env.NODE_ENV === 'development', + sw: 'service-worker.js' +}) + +/** @type {import('next').NextConfig */ const nextConfig = { async headers() { return headers }, - pwa: { - dest: '.next/static', - disable: process.env.NODE_ENV === 'development', - sw: 'service-worker.js' - }, + reactStrictMode: true, async rewrites() { return rewrites } diff --git a/package.json b/package.json index 433e8e0a..e27ccfaf 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "eslint-config-next": "^12.3.1", "eslint-config-prettier": "^8.5.0", "eslint-plugin-prettier": "^4.2.1", - "next-pwa": "^5.5.5", + "next-pwa": "^5.6.0", "prettier": "~2.7.1", "typescript": "~4.8.4" }, diff --git a/yarn.lock b/yarn.lock index 59c96a7d..215d15f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3110,10 +3110,10 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -next-pwa@^5.5.5: - version "5.5.5" - resolved "https://registry.yarnpkg.com/next-pwa/-/next-pwa-5.5.5.tgz#502165880fb52639b7b4ce7eca41e7797445f06a" - integrity sha512-EdheDzxr3V7piAeW2qAeH0uJW5iouSt7s/Fzz6xuvkmRPgbyqQeRY/3ZOWbhfgbPBuzGjdbBWzVurWJPH8bY5w== +next-pwa@^5.6.0: + 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"