Updates for build info. Added it to the error logger.
This commit is contained in:
parent
cb811c804c
commit
cb76253882
3 changed files with 8 additions and 0 deletions
|
|
@ -51,6 +51,8 @@ export class Logger {
|
|||
|
||||
return [
|
||||
`Application: ${applicationConfig.APPLICATION_NAME}`,
|
||||
`Build Version: ${store.issConfig?.buildInfo?.versionString}`,
|
||||
`Build Time: ${store.issConfig?.buildInfo?.buildTimeLocal}`,
|
||||
`ClientTag: ${store.issConfig?.clientTag}`,
|
||||
`ParentAccountNumber: ${store.issConfig?.parentAccountNumber}`,
|
||||
`ClientName: ${store.issConfig?.clientName}`,
|
||||
|
|
|
|||
|
|
@ -269,6 +269,7 @@ export const getDefaultState = () => ({
|
|||
policyZipCode: null,
|
||||
dateOfLoss: null
|
||||
},
|
||||
buildInfo: (typeof __BUILD_INFO__ !== 'undefined') ? __BUILD_INFO__ : null, // Contains the build info for the website, set during the build process. Version, Time, Git info etc....
|
||||
siteType: null, // SiteType / SubType the site is set to (Essential/Advanced).
|
||||
enableNoCompQuote: false
|
||||
}
|
||||
|
|
@ -2258,6 +2259,8 @@ export const useMainStore = defineStore({
|
|||
this.issConfig.siteType = null;
|
||||
this.issConfig.enableNoCompQuote = false;
|
||||
this.issConfig.billToAccountNumber = null;
|
||||
|
||||
// NOTE: Do not wipe out build info.
|
||||
},
|
||||
|
||||
disableKeyFields() {
|
||||
|
|
|
|||
|
|
@ -46,6 +46,9 @@ const buildInfo = {
|
|||
versionString: `${pkg.version}-${gitInfo.commit}-${buildTimes.buildTimeStamp}-${gitInfo.branch}`
|
||||
};
|
||||
|
||||
// This will be replaced by the actual build info during the build process via webpack.DefinePlugin in this config file.
|
||||
__BUILD_INFO__ = buildInfo;
|
||||
|
||||
module.exports = {
|
||||
publicPath: '/',
|
||||
css: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue