diff --git a/src/helpers/logger.js b/src/helpers/logger.js index e583f7c1..b07013f9 100644 --- a/src/helpers/logger.js +++ b/src/helpers/logger.js @@ -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}`, diff --git a/src/store/index.js b/src/store/index.js index 0dbf8c29..5be85c4b 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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() { diff --git a/vue.config.js b/vue.config.js index bd31d343..41fd8c5d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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: {