1// When you run ng build --prod angular-cli will use the environment.prod.ts file
2// and your environment.prod.ts files environment variable doesn't have the firebase
3// field hence you are getting the exception.
4
5export const environment = {
6 production: true,
7 firebase: {
8 apiKey: "...",
9 authDomain: "project.firebaseapp.com",
10 databaseURL: "https://project.firebaseio.com",
11 projectId: "project",
12 storageBucket: "project.appspot.com",
13 messagingSenderId: "..."
14 }
15};
16