Skip to content

Commit

Permalink
Changes default makeObjectMetadata bucket to inherit from FIREBASE_CO…
Browse files Browse the repository at this point in the history
…NFIG #19 (#33)
  • Loading branch information
abeisgoat authored and laurenzlong committed Nov 30, 2018
1 parent 9f8155e commit 819efbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ export function makeObjectMetadata(
/** Fields of ObjectMetadata that you'd like to specify. */
fields: { [key: string]: string },
): storage.ObjectMetadata {
const configBucket = JSON.parse(process.env.FIREBASE_CONFIG || '{}').storageBucket;
const template = {
kind: 'storage#object',
id: '',
bucket: '',
bucket: configBucket || '',
timeCreated: '',
updated: '',
storageClass: 'STANDARD',
Expand Down

0 comments on commit 819efbf

Please sign in to comment.