@@ -88,6 +88,8 @@ module.exports = (themeOptions) => {
8888 `/404` ,
8989 `/404.html` ,
9090 `/offline-plugin-app-shell-fallback` ,
91+ '/offline' ,
92+ '/offline.html'
9193 ] ,
9294 createLinkInHead : true ,
9395 addUncaughtPages : true ,
@@ -96,7 +98,6 @@ module.exports = (themeOptions) => {
9698 `gatsby-plugin-catch-links` ,
9799 `gatsby-plugin-react-helmet` ,
98100 `gatsby-plugin-force-trailing-slashes` ,
99- `gatsby-plugin-offline` ,
100101 {
101102 resolve : `gatsby-plugin-manifest` ,
102103 options : {
@@ -109,6 +110,7 @@ module.exports = (themeOptions) => {
109110 icon : "static/favicon.png" ,
110111 } ,
111112 } ,
113+ 'gatsby-plugin-remove-serviceworker' ,
112114 {
113115 resolve : `gatsby-plugin-feed` ,
114116 options : {
@@ -161,7 +163,7 @@ module.exports = (themeOptions) => {
161163 options : {
162164 canonicalBaseUrl : siteConfig . siteUrl ,
163165 components : [ `amp-form` ] ,
164- excludedPaths : [ `/404*` , `/` ] ,
166+ excludedPaths : [ `/404*` , `/` , `/offline*` ] ,
165167 pathIdentifier : `amp/` ,
166168 relAmpHtmlPattern : `{{canonicalBaseUrl}}{{pathname}}{{pathIdentifier}}` ,
167169 useAmpClientIdApi : true ,
0 commit comments