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
- SSL certificate issuance failed:
Domain verifies but SSL cert fails, tried different subdomains like .api and .aw, used cname and CAA, no prior CAA existed on website, tried Multiple CAAs at on...
- Migration from Self-Hosted to Cloud seem...
Hello, I'm trying to migrate from my Self-Hosted Appwrite instance to Cloud, and can't figure out what's going wrong. - If I initiate the migration from Cloud...
- Password check in function
Hi, is there any way now for checking if the users password is correct in a function? I am creating a delete user function and before deleting I would like to c...