Skip to content

Commit 809b4cb

Browse files
committed
Prevent the service worker from overwriting other repos
1 parent 6b70c7d commit 809b4cb

File tree

3 files changed

+2
-31
lines changed

3 files changed

+2
-31
lines changed

index.html

-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@
6060
content="Learn more about Abhishek Chaudhuri: Rutgers Alumnus & Software Engineer on his personal website. Check out his portfolio of projects ranging from web development, mobile development, game design, and machine learning."
6161
/>
6262
<meta property="og:url" content="https://abhiek187.github.io/" />
63-
<!--
64-
manifest.webmanifest provides metadata used when your web app is installed on a
65-
user's mobile device or desktop. See https://web.dev/add-manifest/
66-
-->
67-
<link rel="manifest" href="/manifest.webmanifest" />
6863
<link
6964
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
7065
rel="stylesheet"

public/manifest.webmanifest

-26
This file was deleted.

vite.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export default defineConfig({
2525
workbox: {
2626
// Don't precache files more than 2 MB
2727
globPatterns: ["**/*.{js,css,html,ico,jpg,png,svg,pdf,webp}"],
28+
// Exclude routes belonging to other repos
29+
navigateFallbackAllowlist: [/^\/$/, /^\/#\//],
2830
},
2931
manifest: {
3032
short_name: "Abhishek Chaudhuri",

0 commit comments

Comments
 (0)