nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
640 stars 99 forks source link

Ignore url to be fetched by the service worker #614

Open jonadeline opened 2 years ago

jonadeline commented 2 years ago

Hi all,

First thanks for this great module. Im relying a lot on it since a while now 👌

Im using @nuxtjs/sentry for logging my errors and I also activated the firebase authentication service with SSR support. I'm facing an issue with sentry DSN url which is fetched by the firebase-auth-sw and this is causing a fetch error. I'd like to ignore this url from being fetched by the service worker but i dont know how i can amend the firebase-auth-sw as its generated on build and don't see any options available regarding the service worker in the firebase-module conf. Is there any workaround i could use to avoid this error ?

Thanks in advance for your help.

Here is the error I get in the console The FetchEvent for "https://xxxxx.ingest.sentry.io/api/xxxx/envelope/?sentry_key=xxxxxx&sentry_version=7" resulted in a network error response: the promise was rejected. firebase-auth-sw.js:111 Uncaught (in promise) TypeError: Failed to fetch at firebase-auth-sw.js:111:30