According to Firebase documentation, Cloud Functions must be concluded with res.send()
, res.end()
, or res.redirect()
. However, when I utilize res.sendFile()
to send file content, the console logs display multiple invocations (around 4-5 invocations).
What is the correct method for utilizing res.sendFile()
in Firebase Cloud Functions?