This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('firebase-functions'); | |
const rp = require('request-promise'); | |
const projectId = process.env.GCP_PROJECT; | |
const region = 'us-central1'; | |
// GCF の List API を利用するためのサービスアカウント | |
// service account をリポジトリに含めたくない場合は下記のように機密データを取得する | |
// 設定方法: https://github.com/firebase/firebase-tools/issues/406#issuecomment-353017349 | |
const serviceAccount = functions.config().list.cert; |