fix: dependency updates and the removal of hatsby-plugin-offline

This commit is contained in:
2023-04-19 09:15:11 +02:00
parent 0f7c99907f
commit 302c6d00e2
4 changed files with 544 additions and 1164 deletions

View File

@@ -164,31 +164,6 @@ export default {
start_url: "/",
},
},
{
resolve: "gatsby-plugin-offline",
options: {
workboxConfig: {
runtimeCaching: [
{
urlPattern: /(\.js$|\.css$|[^:]static\/)/,
handler: "CacheFirst",
},
{
urlPattern: /^https?:.*\/page-data\/.*\.json/,
handler: "StaleWhileRevalidate",
},
{
urlPattern: /^https?:.*\.(png|jpg|jpeg|webp|svg|gif|tiff|js|woff|woff2|json|css)$/,
handler: "StaleWhileRevalidate",
},
{
urlPattern: /^https?:\/\/fonts\.googleapis\.com\/css/,
handler: "StaleWhileRevalidate",
},
],
},
},
},
{
resolve: "gatsby-plugin-react-helmet-canonical-urls",
options: {
@@ -196,6 +171,8 @@ export default {
stripQueryString: true,
},
},
// remove the old serviceworker if it is available.
"gatsby-plugin-remove-serviceworker",
"gatsby-plugin-image",
"gatsby-plugin-catch-links",
"gatsby-plugin-react-helmet",