Skip to content

Commit

Permalink
Update .gitignore and protect environment files
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmusm committed Jan 15, 2020
1 parent b407f13 commit ce81bd1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
/tmp
/out-tsc

#environments
/src/environments/environment.ts
/src/environments/environment.prod.ts

# dependencies
/node_modules

Expand Down
23 changes: 23 additions & 0 deletions src/environments/environment_demo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

export const environment = {
production: false,
firebase: {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: ""
}
};

/*
* In development mode, to ignore zone related error stack frames such as
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
* import the following file, but please comment it out in production mode
* because it will have performance impact when throw error
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.

0 comments on commit ce81bd1

Please sign in to comment.