Generate config on serve and updated git revision method (#587)

* run generate-config on serve

* write the config file only if settings have changed

* read the git commit hash from the current branch, not master

* git sha is now short by default, no need to trim on the about component
This commit is contained in:
Felipe Knorr Kuhn authored and GitHub committed 2021-06-16 13:47:05 -05:00
1 parent 4a5c670dd4
commit 4a9bbf79e0
3 files changed
+19 -9

No files matched your search

@@ -17,7 +17,7 @@ export class AboutComponent implements OnInit {
backendInfo$: Observable<IBackendInfo>;
sponsors$: Observable<any>;
contributors$: Observable<any>;
frontendGitCommitHash = this.stateService.env.GIT_COMMIT_HASH.substr(0, 8);
frontendGitCommitHash = this.stateService.env.GIT_COMMIT_HASH;
packetJsonVersion = this.stateService.env.PACKAGE_JSON_VERSION;
officialMempoolSpace = this.stateService.env.OFFICIAL_MEMPOOL_SPACE;
showNavigateToSponsor = false;