Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Sep 25, 2024
1 parent f870802 commit 6acb203
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -24,6 +24,6 @@ console.log("Hello 2");
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<RouterProvider router={router} />
<PWABadge />
{/* <PWABadge /> */}
</React.StrictMode>,
);
56 changes: 28 additions & 28 deletions apps/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,41 @@ 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({
base: "",

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",
Expand Down

0 comments on commit 6acb203

Please sign in to comment.