From 6acb20328b4e8a9045aa148a74717abc4b3f41bc Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Wed, 25 Sep 2024 14:28:02 +0800 Subject: [PATCH] Test --- apps/web/src/main.tsx | 4 +-- apps/web/vite.config.ts | 56 ++++++++++++++++++++--------------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/apps/web/src/main.tsx b/apps/web/src/main.tsx index 95f5fac9..b8f88da3 100644 --- a/apps/web/src/main.tsx +++ b/apps/web/src/main.tsx @@ -3,7 +3,7 @@ import ReactDOM from "react-dom/client"; import "./index.css"; import { RouterProvider } from "react-router-dom"; import { router } from "./router.tsx"; -import PWABadge from "./components/pwa-badge.tsx"; +// import PWABadge from "./components/pwa-badge.tsx"; import * as Sentry from "@sentry/react"; @@ -24,6 +24,6 @@ console.log("Hello 2"); ReactDOM.createRoot(document.getElementById("root")!).render( - + {/* */} , ); diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 40ef9955..dafb4b8e 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -3,7 +3,7 @@ import { sentryVitePlugin } from "@sentry/vite-plugin"; import { defineConfig } from "vite"; import react from "@vitejs/plugin-react-swc"; -import { VitePWA } from "vite-plugin-pwa"; +// import { VitePWA } from "vite-plugin-pwa"; // https://vitejs.dev/config/ export default defineConfig({ @@ -11,33 +11,33 @@ export default defineConfig({ plugins: [ react(), - VitePWA({ - registerType: "prompt", - injectRegister: false, - manifestFilename: "manifest.json", - pwaAssets: { - disabled: false, - config: true, - }, - manifest: { - name: "Helix Bridge", - short_name: "HelixBridge", - description: "Secure, fast, and low-cost cross-chain crypto transfers", - theme_color: "#00141D", - background_color: "#00141D", - }, - workbox: { - globPatterns: ["**/*.{js,css,html,svg,png,ico}"], - cleanupOutdatedCaches: true, - clientsClaim: true, - }, - devOptions: { - enabled: false, - navigateFallback: "index.html", - suppressWarnings: true, - type: "module", - }, - }), + // VitePWA({ + // registerType: "prompt", + // injectRegister: false, + // manifestFilename: "manifest.json", + // pwaAssets: { + // disabled: false, + // config: true, + // }, + // manifest: { + // name: "Helix Bridge", + // short_name: "HelixBridge", + // description: "Secure, fast, and low-cost cross-chain crypto transfers", + // theme_color: "#00141D", + // background_color: "#00141D", + // }, + // workbox: { + // globPatterns: ["**/*.{js,css,html,svg,png,ico}"], + // cleanupOutdatedCaches: true, + // clientsClaim: true, + // }, + // devOptions: { + // enabled: false, + // navigateFallback: "index.html", + // suppressWarnings: true, + // type: "module", + // }, + // }), sentryVitePlugin({ org: "helix-ck", project: "javascript-react",