Conversation
| urlObj.hostname.includes("firebaseio.com") || | ||
| urlObj.hostname.includes("firebasedatabase.app") | ||
| ) { | ||
| if (urlObj.hostname.includes("firebase")) { |
There was a problem hiding this comment.
So that FIREBASE_REALTIME_URL=https://firebaseio-staging.com will work.
There was a problem hiding this comment.
Let's just list all three full domain names to be on the safe side. myfirebaseapp.example.com should be filtered out.
There was a problem hiding this comment.
Is there a way to detect emulator specific url instead? It might be cleaner.
Are they always "localhost"?
There was a problem hiding this comment.
No, in theory the emulator can listen on all sorts of hosts and ports. Common configurations include 127.0.0.1, localhost, but it can be changed by the user to LAN or even public IP addresses and domains, and I've seen those in the wild. We had a similar discussion re: RTDB emulator and the conclusion so far is not to try and detect emulator URLs
There was a problem hiding this comment.
SG. I will just check for firebaseio or firebasedatabase if u think firebase is too general.
| urlObj.hostname.includes("firebaseio.com") || | ||
| urlObj.hostname.includes("firebasedatabase.app") | ||
| ) { | ||
| if (urlObj.hostname.includes("firebase")) { |
There was a problem hiding this comment.
Let's just list all three full domain names to be on the safe side. myfirebaseapp.example.com should be filtered out.
| urlObj.hostname.includes("firebaseio.com") || | ||
| urlObj.hostname.includes("firebasedatabase.app") | ||
| ) { | ||
| if (urlObj.hostname.includes("firebase")) { |
In
listRemove.ts,const paths = Object.keys(res.body);fails ifres.bodyis null.This is causing errors when listing a path already deleted.
This bug was introduced in #2828.