This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 456456 "destination" : " /learn/" ,
457457 "type" : " 301"
458458 },
459- {
460- "source" : " /learn/introduction-to-nodejs/" ,
461- "destination" : " /learn/" ,
462- "type" : " 301"
463- },
464459 {
465460 "source" : " /api/" ,
466461 "destination" : " /api/v18/documentation/" ,
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ const gatsbyConfig = {
3939 'Mdx.frontmatter.category' : `CategoriesYaml.name` ,
4040 } ,
4141 plugins : [
42+ 'gatsby-plugin-remove-serviceworker' ,
4243 'gatsby-plugin-typescript' ,
4344 'gatsby-plugin-catch-links' ,
4445 '@skagami/gatsby-plugin-dark-mode' ,
@@ -203,19 +204,4 @@ const gatsbyConfig = {
203204 ] ,
204205} ;
205206
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-
221207module . exports = gatsbyConfig ;
You can’t perform that action at this time.
0 commit comments