With with 2nd gen functions:
import { onRequest } from "firebase-functions/v2/https"; export const httpApi = onRequest( { serviceAccount: "[email protected]", }, async (req, res) => { ... }, );