File tree Expand file tree Collapse file tree 7 files changed +2761
-45
lines changed Expand file tree Collapse file tree 7 files changed +2761
-45
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,10 @@ node_modules
4
4
.env
5
5
.DS_Store
6
6
7
+ # PWA files
8
+ ** /public /sw.js
9
+ ** /public /sw.js.map
10
+ ** /public /worker- * .js
11
+ ** /public /worker- * .js.map
12
+ ** /public /workbox- * .js
13
+ ** /public /workbox- * .js.map
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
44
44
45
45
### Added
46
46
47
+ - Made the site a Progressive Web App (PWA)
47
48
- About page content (first section)
48
49
49
50
### Fixed
Original file line number Diff line number Diff line change
1
+ const withPWA = require ( 'next-pwa' ) ;
2
+
3
+ module . exports = withPWA ( {
4
+ pwa : {
5
+ dest : 'public' ,
6
+ register : true ,
7
+ skipWaiting : true ,
8
+ } ,
9
+ } ) ;
Original file line number Diff line number Diff line change 13
13
"dependencies" : {
14
14
"html-entities" : " ^2.3.2" ,
15
15
"next" : " ^12.0.10" ,
16
+ "next-pwa" : " ^5.5.4" ,
16
17
"react" : " 17.0.1" ,
17
18
"react-dom" : " 17.0.1" ,
18
19
"react-google-recaptcha" : " ^2.1.0" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Web Dev Path" ,
3
3
"short_name" : " Web Dev Path" ,
4
+ "start_url" : " /" ,
4
5
"icons" : [
5
- {
6
- "src" : " /android-chrome-192x192.png" ,
7
- "sizes" : " 192x192" ,
8
- "type" : " image/png"
9
- },
10
- {
11
- "src" : " /android-chrome-512x512.png" ,
12
- "sizes" : " 512x512" ,
13
- "type" : " image/png"
14
- }
6
+ {
7
+ "src" : " /favicon/android-chrome-192x192.png" ,
8
+ "sizes" : " 192x192" ,
9
+ "type" : " image/png"
10
+ },
11
+ {
12
+ "src" : " /favicon/android-chrome-512x512.png" ,
13
+ "sizes" : " 512x512" ,
14
+ "type" : " image/png"
15
+ },
16
+ {
17
+ "src" : " /favicon/maskable192.png" ,
18
+ "sizes" : " 192x192" ,
19
+ "type" : " image/png" ,
20
+ "purpose" : " maskable"
21
+ }
15
22
],
16
- "theme_color" : " #ffffff" ,
17
- "background_color" : " #ffffff" ,
18
- "display" : " standalone"
19
- }
23
+ "theme_color" : " #FFFFFF" ,
24
+ "background_color" : " #FFFFFF" ,
25
+ "display" : " standalone" ,
26
+ "orientation" : " portrait"
27
+ }
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments