From 4bcc703444966e3db870eae0ac4a09e7f87e65ac Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Sun, 2 Oct 2022 16:59:44 +0530 Subject: [PATCH] chore: exclude redirect urls from service worker --- .gitignore | 79 +++++++++++++++++++++++--- packages/hoppscotch-app/vite.config.ts | 13 ++++- 2 files changed, 82 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 72c6e6d4f..52ef44af7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,18 @@ -# Created by .ignore support plugin (hsz.mobi) - # Firebase .firebase -### Node template +### Node ### # Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids @@ -22,6 +25,7 @@ lib-cov # Coverage directory used by tools like istanbul coverage +*.lcov # nyc test coverage .nyc_output @@ -45,12 +49,27 @@ jspm_packages/ # TypeScript v1 declaration files typings/ +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + # Optional npm cache directory .npm # Optional eslint cache .eslintcache +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + # Optional REPL history .node_repl_history @@ -60,26 +79,68 @@ typings/ # Yarn Integrity file .yarn-integrity -# dotenv environment variables file +# dotenv environment variable files .env +.env.development.local +.env.test.local +.env.production.local +.env.local # parcel-bundler cache (https://parceljs.org/) .cache +.parcel-cache -# next.js build output +# Next.js build output .next +out -# nuxt.js build output +# Nuxt.js build / generate output .nuxt - -# Nuxt generate dist +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + # vuepress build output .vuepress/dist +# vuepress v2.x temp and cache directory +.temp + +# Docusaurus cache and generated files +.docusaurus + # Serverless directories -.serverless +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +### Node Patch ### +# Serverless Webpack directories +.webpack/ + +# SvelteKit build / generate output +.svelte-kit # IDE / Editor .idea diff --git a/packages/hoppscotch-app/vite.config.ts b/packages/hoppscotch-app/vite.config.ts index c8b76e5b6..76c1abd56 100644 --- a/packages/hoppscotch-app/vite.config.ts +++ b/packages/hoppscotch-app/vite.config.ts @@ -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({