Skip to content

Commit

Permalink
dev: disable PWA in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Jun 9, 2024
1 parent b2f9444 commit ba34884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

0 comments on commit ba34884

Please sign in to comment.