Skip to content

Storage

This starter template uses Firebase Cloud Storage to store and serve user-generated content, such as photos and videos.

Deployment

The deployment of the storage rules is done via the Firebase CLI or the Firebase Console. To deploy the storage rules via the Firebase CLI, a rules file is required. This starter template provides a rules file at firebase/storage.rules.

To deploy the rules file manually, run the following command:

npm run firebase:deploy:storage

See CI/CD.

If you choose to publish changes via the Firebase Console, you should either add new changes manually to the firebase/storage.rules file so that they are not reverted during the next deployment, or you should disable the corresponding deployment step in the CI/CD pipeline (see CI/CD).