fix: added directive to remove service worker (#834)

This commit is contained in:
Dan Ditomaso
2025-09-07 13:14:24 -04:00
committed by GitHub
parent f9bd61af49
commit d8df40816f
3 changed files with 2776 additions and 87 deletions
+2 -1
View File
@@ -80,8 +80,9 @@
"react-map-gl": "8.0.4", "react-map-gl": "8.0.4",
"react-qrcode-logo": "^3.0.0", "react-qrcode-logo": "^3.0.0",
"rfc4648": "^1.5.4", "rfc4648": "^1.5.4",
"vite-plugin-html": "^3.2.2",
"vite": "^7.0.4", "vite": "^7.0.4",
"vite-plugin-html": "^3.2.2",
"vite-plugin-pwa": "^1.0.3",
"zod": "^4.0.5", "zod": "^4.0.5",
"zustand": "5.0.6" "zustand": "5.0.6"
}, },
+4 -11
View File
@@ -5,6 +5,7 @@ import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react"; import react from "@vitejs/plugin-react";
import { defineConfig, loadEnv } from "vite"; import { defineConfig, loadEnv } from "vite";
import { createHtmlPlugin } from "vite-plugin-html"; import { createHtmlPlugin } from "vite-plugin-html";
import { VitePWA } from "vite-plugin-pwa";
let hash = ""; let hash = "";
let version = "v0.0.0"; let version = "v0.0.0";
@@ -48,17 +49,9 @@ export default defineConfig(({ mode }) => {
}, },
}, },
}), }),
// VitePWA({ VitePWA({
// registerType: "autoUpdate", selfDestroying: true,
// strategies: "generateSW", }),
// devOptions: {
// enabled: true,
// },
// workbox: {
// cleanupOutdatedCaches: true,
// sourcemap: true,
// },
// }),
], ],
optimizeDeps: { optimizeDeps: {
include: ["react/jsx-runtime"], include: ["react/jsx-runtime"],
+2770 -75
View File
File diff suppressed because it is too large Load Diff