📜  在 environment.ts 文件中找不到 firebase angular - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:24.648000             🧑  作者: Mango

代码示例1
// When you run ng build --prod angular-cli will use the environment.prod.ts file
// and your environment.prod.ts files environment variable doesn't have the firebase
// field hence you are getting the exception.

export const environment = {
  production: true,
  firebase: {
    apiKey: "...",
    authDomain: "project.firebaseapp.com",
    databaseURL: "https://project.firebaseio.com",
    projectId: "project",
    storageBucket: "project.appspot.com",
    messagingSenderId: "..."
  }
};