When go to my function URL, it executes twice.
/favicon.ico path always being the second execution.
Why is that happening?
browsers automatically fetch favicon
Ah, so I can't do anything about this?
You can check the path and return nothing at start so it will finish as fast as possible
not if you're opening it with a browser
Well, still goes to execution count. π
Ooh for that part Yes..
Another thing
At some point I do return res.redirect(new URL(document.url));
Shouldn't this redirect me, in the browser, to the url that is set in here?
If I run it from the browser
yes? depends on how you've done it
redirection is inside a utility function that is in another file. It doesn't redirect even tho it comes and executes that line of code.
Should redirect part rather be in the main method in main.ts rather than in the utility?
Nevermind
I actually forgot a return statement on utility call. It works. Ty
[SOLVED] Cloud function executes twice from the URL
Recommended threads
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...