-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
39 lines (35 loc) · 1.3 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const assert = require('assert');
const path = require('path');
const serviceAccountKey = name => path.resolve(path.join(__dirname, '..', 'service-account-keys', `${name}.json`));
const configs = {
default: {
firebase: {
apiKey: "AIzaSyDlYqLJJYWK7cdYBAtkZR5efA8HoYvcd6I",
authDomain: "ember-cli-zuglet.firebaseapp.com",
databaseURL: "https://ember-cli-zuglet.firebaseio.com",
projectId: "ember-cli-zuglet",
storageBucket: "ember-cli-zuglet.appspot.com",
messagingSenderId: "337740781111",
appId: "1:337740781111:web:d599271545ea7f2ff751b2"
},
serviceAccountKey: serviceAccountKey('ember-cli-zuglet')
},
travis: {
firebase: {
apiKey: "AIzaSyDoUTp48KAjzcRLRhf1AofFdrsHI6KujHw",
authDomain: "ember-cli-zuglet-travis.firebaseapp.com",
databaseURL: "https://ember-cli-zuglet-travis.firebaseio.com",
projectId: "ember-cli-zuglet-travis",
storageBucket: "ember-cli-zuglet-travis.appspot.com",
messagingSenderId: "1053333094712",
appId: "1:1053333094712:web:8e2aa84a201069524581cd"
},
serviceAccountKey: serviceAccountKey('ember-cli-zuglet-travis')
}
};
const getConfig = name => {
let config = configs[name];
assert(config, `Config for name '${name}' was not found`);
return config;
}
module.exports = getConfig;