chore: exclude redirect urls from service worker

This commit is contained in:
Liyas Thomas
2022-10-02 16:59:44 +05:30
parent f01e0b888d
commit 4bcc703444
2 changed files with 82 additions and 10 deletions

View File

@@ -138,7 +138,18 @@ export default defineConfig({
workbox: {
cleanupOutdatedCaches: true,
maximumFileSizeToCacheInBytes: 4194304,
navigateFallbackDenylist: [/robots.txt/, /sitemap.xml/]
navigateFallbackDenylist: [
/robots.txt/,
/sitemap.xml/,
/discord/,
/telegram/,
/beta/,
/careers/,
/newsletter/,
/twitter/,
/github/,
/announcements/,
],
},
}),
VitePluginFonts({