I need to make a function that will be used only for Firebase emulator. I need to perform some actions to my Firestore emulators, to populate Firestore emulators using dummy data.
I write this code in my index.ts
exports.onlyForFirebaseSimulator = functions.https.onRequest(async (req, res) => {
});
I want to make this function available when I run firebase emulators:start , but it will not be deployed to production when I run firebase deploy.
I have to comment it out manually before deployment. I don't want to manually set it, because it is error prone.