Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 338 Bytes

get-firebase-app-name.md

File metadata and controls

15 lines (10 loc) · 338 Bytes

Get Firebase Project Name

Firebase Project or App name is available as global variable here:

process.env.GCLOUD_PROJECT

You can use this variable simply to get the app name or current domain like so:

    const domainName = 'https://' + process.env.GCLOUD_PROJECT + '.firebaseapp.com';
    console.log(domainName)