We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161f319 commit 82ae2b5Copy full SHA for 82ae2b5
tools/gulp/task_helpers.ts
@@ -221,7 +221,9 @@ export function openFirebaseDatabase() {
221
credential: firebaseAdmin.credential.cert({
222
project_id: 'material2-dashboard',
223
client_email: 'firebase-adminsdk-ch1ob@material2-dashboard.iam.gserviceaccount.com',
224
- private_key: process.env['MATERIAL2_FIREBASE_PRIVATE_KEY']
+ // In Travis CI the private key will be incorrect because the line-breaks are escaped.
225
+ // The line-breaks need to persist in the service account private key.
226
+ private_key: (process.env['MATERIAL2_FIREBASE_PRIVATE_KEY'] || '').replace(/\\n/g, '\n')
227
}),
228
databaseURL: 'https://material2-dashboard.firebaseio.com'
229
});
0 commit comments