From 999e6698aa9e838a3585f645a2739b4e86747ffb Mon Sep 17 00:00:00 2001 From: tc-imba Date: Wed, 26 Jun 2024 06:34:16 +0800 Subject: [PATCH] test: turn off service worker --- example/config.js | 2 +- gatsby-theme-academic/gatsby-config.mjs | 3 ++- gatsby-theme-academic/package.json | 3 ++- yarn.lock | 5 +++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/example/config.js b/example/config.js index c794e8ac..4110579b 100644 --- a/example/config.js +++ b/example/config.js @@ -8,7 +8,7 @@ module.exports = { introduction: [ 'You can write one or several paragraphs to introduce yourself here. You can find this introduction in the `config.js` file in the template.', 'In this site, almost everything supports Markdown Syntax. For example, you can add hyperlinks in the introduction such as [fxhsb](https://github.com/Reapor-Yurnero) with\n```markdown\n[fxhsb](https://github.com/Reapor-Yurnero)\n```', - 'Here we try to test whether reloading is enabled when site updated (21).', + 'Here we try to test whether reloading is enabled when site updated (22).', ], avatar: 'avatar.png', professions: [ diff --git a/gatsby-theme-academic/gatsby-config.mjs b/gatsby-theme-academic/gatsby-config.mjs index e2d1753e..4cfc0d00 100644 --- a/gatsby-theme-academic/gatsby-config.mjs +++ b/gatsby-theme-academic/gatsby-config.mjs @@ -123,7 +123,8 @@ const config = ({ } } }, - 'gatsby-plugin-offline', + // 'gatsby-plugin-offline', + 'gatsby-plugin-remove-serviceworker', { resolve: 'gatsby-source-filesystem', options: { diff --git a/gatsby-theme-academic/package.json b/gatsby-theme-academic/package.json index 0c5a7c6d..11b1f0b2 100644 --- a/gatsby-theme-academic/package.json +++ b/gatsby-theme-academic/package.json @@ -43,10 +43,11 @@ "gatsby-plugin-lunr": "^1.5.2", "gatsby-plugin-manifest": "^5.13.1", "gatsby-plugin-mdx": "^5.13.1", - "gatsby-plugin-nprogress": "^5.13.1", "gatsby-plugin-netlify": "^5.1.1", + "gatsby-plugin-nprogress": "^5.13.1", "gatsby-plugin-offline": "^6.13.1", "gatsby-plugin-react-helmet": "^6.13.1", + "gatsby-plugin-remove-serviceworker": "^1.0.0", "gatsby-plugin-robots-txt": "^1.8.0", "gatsby-plugin-sharp": "^5.13.1", "gatsby-plugin-sitemap": "^6.13.1", diff --git a/yarn.lock b/yarn.lock index 1d70c276..317abd39 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6691,6 +6691,11 @@ gatsby-plugin-react-helmet@^6.13.1: dependencies: "@babel/runtime" "^7.20.13" +gatsby-plugin-remove-serviceworker@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-remove-serviceworker/-/gatsby-plugin-remove-serviceworker-1.0.0.tgz#9fb433bc8bd766e14e1d3711c4ac6f051e1dff7c" + integrity sha512-8uQ/6PiM718BTZAgmQeEO6ULrJgLugmDVAkUGv5xxF0luBNrbboDgpsG0z1fbsotSDTzLWyULR0zzGNfWZaY7w== + gatsby-plugin-robots-txt@^1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/gatsby-plugin-robots-txt/-/gatsby-plugin-robots-txt-1.8.0.tgz#f237b7e9bec2d8dc276305ff629ecf3df8277c63"