From ba348847c262e1d03fdd968050fad2bc574bfa62 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Sun, 9 Jun 2024 15:46:50 -0700 Subject: [PATCH] dev: disable PWA in dev --- next.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 87a5d0f..abe7eb8 100644 --- a/next.config.js +++ b/next.config.js @@ -6,9 +6,9 @@ const withPWA = require("next-pwa")({ register: true, skipWaiting: true, runtimeCaching, - disable: process.env.NODE_ENV === "DEVELOPMENT", + disable: process.env.NODE_ENV !== "production", }); module.exports = withPWA({ - reactStrictMode: false, + reactStrictMode: true, });