firebase-module icon indicating copy to clipboard operation
firebase-module copied to clipboard

Ignore url to be fetched by the service worker

Open jonadeline opened this issue 3 years ago • 0 comments

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

jonadeline avatar Feb 11 '22 09:02 jonadeline