File tree Expand file tree Collapse file tree 5 files changed +790
-2304
lines changed Expand file tree Collapse file tree 5 files changed +790
-2304
lines changed Original file line number Diff line number Diff line change 456
456
"destination" : " /learn/" ,
457
457
"type" : " 301"
458
458
},
459
- {
460
- "source" : " /learn/introduction-to-nodejs/" ,
461
- "destination" : " /learn/" ,
462
- "type" : " 301"
463
- },
464
459
{
465
460
"source" : " /api/" ,
466
461
"destination" : " /api/v18/documentation/" ,
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ const gatsbyConfig = {
39
39
'Mdx.frontmatter.category' : `CategoriesYaml.name` ,
40
40
} ,
41
41
plugins : [
42
+ 'gatsby-plugin-remove-serviceworker' ,
42
43
'gatsby-plugin-typescript' ,
43
44
'gatsby-plugin-catch-links' ,
44
45
'@skagami/gatsby-plugin-dark-mode' ,
@@ -203,19 +204,4 @@ const gatsbyConfig = {
203
204
] ,
204
205
} ;
205
206
206
- // Note.: This implementation doesn't work with pathPrefixes (eg.: our staging pages)
207
- // Which means, that the staging pages will not benefit from a SW
208
- // It also makes sense to not use SW on Staging Pages as we want to keep testing them from time-to-time
209
- // This will still work when building & serving gatsby locally
210
- if ( ! gatsbyConfig . pathPrefix ) {
211
- gatsbyConfig . plugins . push ( {
212
- // This is a temporary solution until (https://github.com/gatsbyjs/gatsby/pull/31542) gets merged
213
- // So we are able to use the official service worker again. This service worker supports latest Workbox
214
- resolve : 'gatsby-plugin-offline-next' ,
215
- options : {
216
- globPatterns : [ '**/icon-path*' ] ,
217
- } ,
218
- } ) ;
219
- }
220
-
221
207
module . exports = gatsbyConfig ;
You can’t perform that action at this time.
0 commit comments