标签:#Sentry

Posts

· 2018-09-04 · * CloudFlare * Sentry *

Sentry is cross-platform application monitoring, with a focus on error reporting. https://sentry.io

addEventListener('fetch', event => {
  if(event.request.url.indexOf('firebase-storage')>=0){
      event.respondWith(handle(event,'firebase-storage.XXXXX.com','firebasestorage.googleapis.com'))
  } else if(event.request.url.indexOf('firebase-db')>=0){
      event.respondWith(handle(event,'firebase-db.XXXXXX.com','XXXXXXXX.firebaseio.com'))
  }
})
  

async function handle(event,a,b) {