Skip to content
Permalink
Browse files

storageの初期化

  • Loading branch information...
h-sakano committed Dec 3, 2018
1 parent ae96791 commit 2d200e831a06ff5b52f35463cc4f5be3d44c8628
Showing with 13 additions and 2 deletions.
  1. +5 −1 firebase.json
  2. +1 −1 src/main.ts
  3. +7 −0 storage.rules
@@ -21,6 +21,10 @@
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
]
],
"source": "functions"
},
"storage": {
"rules": "storage.rules"
}
}
@@ -12,7 +12,7 @@ const config = {
authDomain: 'advent-calendar-2018-app-7a5d3.firebaseapp.com',
databaseURL: 'https://advent-calendar-2018-app-7a5d3.firebaseio.com',
projectId: 'advent-calendar-2018-app-7a5d3',
storageBucket: '',
storageBucket: 'advent-calendar-2018-app-7a5d3.appspot.com',
messagingSenderId: '298560560632',
}
firebase.initializeApp(config)
@@ -0,0 +1,7 @@
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if request.auth != null;
}
}
}

0 comments on commit 2d200e8

Please sign in to comment.
You can’t perform that action at this time.