️ perf: refactor pwa implement to have better performance (#4124)

* test remove serwist

* 尝试优化 pwa install 实现

* Update next.config.mjs

* fix lint

* delay the service worker register

* only enabled on prod

* when isShowPWAGuide update, trigger guide too
This commit is contained in:
Arvin Xu
2024-09-25 22:00:28 +08:00
committed by GitHub
parent bfb7675125
commit 7e3aa09510
13 changed files with 135 additions and 77 deletions
+4
View File
@@ -61,5 +61,9 @@ bun.lockb
sitemap*.xml
robots.txt
# Serwist
public/sw*
public/swe-worker*
*.patch
*.pdf