Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 368 Bytes

access-project-storage-in-cloud-function.md

File metadata and controls

12 lines (8 loc) · 368 Bytes

Access Project Storage in cloud functions

There might be a more "correct" way of doing it but that's what I found for now:

const admin = require("firebase-admin");

admin.initializeApp({ storageBucket: "<Bucket Name>.appspot.com" })

// Now one can access the bucket object inside of the project's storage
const bucket = admin.storage().bucket()