The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/storage > getStorage

getStorage() function

Gets a Firebase StorageService instance for the given Firebase app.

Signature:

export declare function getStorage(app?: FirebaseApp, bucketUrl?: string): StorageService;

Parameters

Parameter Type Description
app FirebaseApp Firebase app to get Storage instance for.
bucketUrl string The gs:// url to your Firebase Storage Bucket. If not passed, uses the app's default Storage Bucket.

Returns:

StorageService

A Firebase StorageService instance.