Skip to content

Commit 05aa63e

Browse files
committed
fead: use pwa only prod
1 parent a5b11f6 commit 05aa63e

File tree

8 files changed

+376
-3012
lines changed

8 files changed

+376
-3012
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
node_modules
22
.next
33
.DS_Store
4+
5+
6+
**/public/workbox-*.js
7+
**/public/sw.js

next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
const isProd = process.env.NODE_ENV === 'production';
2+
13
const withPWA = require('next-pwa');
24

35
module.exports = withPWA({
46
pwa: {
7+
disable: !isProd,
58
dest: 'public',
69
},
710
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
]
2828
},
2929
"dependencies": {
30-
"@icons-pack/react-simple-icons": "^2.7.1",
30+
"@icons-pack/react-simple-icons": "^3.0.0-alpha.0",
3131
"@typefaces-pack/typeface-inter": "^1.0.3",
32-
"next": "^9.3.5",
32+
"next": "^9.3.6",
3333
"next-pwa": "^2.3.3",
3434
"prop-types": "^15.7.2",
3535
"react": "^16.13.1",

public/sw.js

Lines changed: 0 additions & 137 deletions
This file was deleted.

public/sw.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)