Skip to content

Commit d847b01

Browse files
authored
chore(dependencies): updated dependencies, removed sw (nodejs#2885)
* chore(dependencies): updated dependencies, removed sw * fix(redirects): removed a duplicate redirect
1 parent 1bb3c89 commit d847b01

File tree

5 files changed

+790
-2304
lines changed

5 files changed

+790
-2304
lines changed

firebase.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -456,11 +456,6 @@
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/",

gatsby-config.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff 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-
221207
module.exports = gatsbyConfig;

0 commit comments

Comments
 (0)