diff --git a/.gitignore b/.gitignore index 3f2041b5..434fd2df 100755 --- a/.gitignore +++ b/.gitignore @@ -108,4 +108,5 @@ superset-tools.bundle .axiom/ # Generated audit reports -axiom-mcp-tools-audit-report.md \ No newline at end of file +axiom-mcp-tools-audit-report.md +*.docx diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 0324fc2f..f0d192b9 100755 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -7,9 +7,11 @@ const APP_VERSION = (() => { if (process.env.APP_VERSION && process.env.APP_VERSION !== '0.0.0') { return process.env.APP_VERSION; } - // 2. Fall back to latest git tag (works in local dev with .git) + // 2. Fall back to latest git tag + short commit hash (works in local dev with .git) try { - return execSync('git describe --tags --abbrev=0', { encoding: 'utf8' }).trim(); + const tag = execSync('git describe --tags --abbrev=0', { encoding: 'utf8' }).trim(); + const commit = execSync('git rev-parse --short HEAD', { encoding: 'utf8' }).trim(); + return `${tag}+${commit}`; } catch { return '0.0.0'; }