Update GH actions to only install necessary dependencies
Only install dependencies required for hosting, not cloud functions
This commit is contained in:
@@ -3,11 +3,12 @@ rules_version = '2';
|
||||
service firebase.storage {
|
||||
match /b/{bucket}/o {
|
||||
match /{userId}/{vocabId} {
|
||||
allow read: if request.auth != null;
|
||||
allow create, update: if request.auth.uid == userId &&
|
||||
request.resource.contentType.matches("audio/mp3") &&
|
||||
request.resource.size < 1024 * 1024 / 5 &&
|
||||
vocabId.matches('[a-zA-Z0-9_-]+\\.mp3');
|
||||
allow read, write: if false;
|
||||
// allow read: if request.auth != null;
|
||||
// allow create, update: if request.auth.uid == userId &&
|
||||
// request.resource.contentType.matches("audio/mp3") &&
|
||||
// request.resource.size < 1024 * 1024 / 5 &&
|
||||
// vocabId.matches('[a-zA-Z0-9_-]+\\.mp3');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user