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 [
|
return [
|
||||||
`Application: ${applicationConfig.APPLICATION_NAME}`,
|
`Application: ${applicationConfig.APPLICATION_NAME}`,
|
||||||
|
`Build Version: ${store.issConfig?.buildInfo?.versionString}`,
|
||||||
|
`Build Time: ${store.issConfig?.buildInfo?.buildTimeLocal}`,
|
||||||
`ClientTag: ${store.issConfig?.clientTag}`,
|
`ClientTag: ${store.issConfig?.clientTag}`,
|
||||||
`ParentAccountNumber: ${store.issConfig?.parentAccountNumber}`,
|
`ParentAccountNumber: ${store.issConfig?.parentAccountNumber}`,
|
||||||
`ClientName: ${store.issConfig?.clientName}`,
|
`ClientName: ${store.issConfig?.clientName}`,
|
||||||
|
|
|
||||||
|
|
@ -269,6 +269,7 @@ export const getDefaultState = () => ({
|
||||||
policyZipCode: null,
|
policyZipCode: null,
|
||||||
dateOfLoss: 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).
|
siteType: null, // SiteType / SubType the site is set to (Essential/Advanced).
|
||||||
enableNoCompQuote: false
|
enableNoCompQuote: false
|
||||||
}
|
}
|
||||||
|
|
@ -2258,6 +2259,8 @@ export const useMainStore = defineStore({
|
||||||
this.issConfig.siteType = null;
|
this.issConfig.siteType = null;
|
||||||
this.issConfig.enableNoCompQuote = false;
|
this.issConfig.enableNoCompQuote = false;
|
||||||
this.issConfig.billToAccountNumber = null;
|
this.issConfig.billToAccountNumber = null;
|
||||||
|
|
||||||
|
// NOTE: Do not wipe out build info.
|
||||||
},
|
},
|
||||||
|
|
||||||
disableKeyFields() {
|
disableKeyFields() {
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,9 @@ const buildInfo = {
|
||||||
versionString: `${pkg.version}-${gitInfo.commit}-${buildTimes.buildTimeStamp}-${gitInfo.branch}`
|
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 = {
|
module.exports = {
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
css: {
|
css: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue