I want to get the url of a http cloud function for firebase in another cloud function for firebase instead of hardcoding it. Is it possible?
This doesn't work, but is there any way of doing something similar?
exports.helloWorld = functions.https.onRequest((req, res) => {
res.send("Hello!");
});
exports.anotherFunction = functions.https.onRequest((req, res) => {
const url = exports.helloWorld.url;
res.send(url); // https://us-central1-project-id.cloudfunctions.net/helloWorld
});