Skip to content

Commit addf90e

Browse files
committed
🐛 fix(server): fix server ci version on healthcheck
1 parent cf7a493 commit addf90e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

server/scripts/build-version.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ function getBuildInfo() {
1616
const commitHash = execSync('git rev-parse --short HEAD', {
1717
encoding: 'utf8',
1818
}).trim();
19-
const buildDate = new Date().toISOString();
19+
const buildDate = process.env.BUILD_DATE || new Date().toISOString();
2020
const buildEnv = process.env.NODE_ENV || 'development';
2121

2222
return {
23-
version: packageJson.version,
23+
version: process.env.SERVER_VERSION || packageJson.version,
2424
buildNumber: process.env.BUILD_NUMBER || '1',
2525
buildDate,
26-
commitHash,
26+
commitHash: process.env.COMMIT_HASH || commitHash,
2727
buildEnv,
2828
name: packageJson.name,
2929
description: packageJson.description || 'Express API Server',
3030
};
3131
} catch (error) {
3232
console.warn('Warning: Could not get git info:', error.message);
3333
return {
34-
version: packageJson.version,
34+
version: process.env.SERVER_VERSION || packageJson.version,
3535
buildNumber: process.env.BUILD_NUMBER || '1',
36-
buildDate: new Date().toISOString(),
37-
commitHash: 'unknown',
36+
buildDate: process.env.BUILD_DATE || new Date().toISOString(),
37+
commitHash: process.env.COMMIT_HASH || 'unknown',
3838
buildEnv: process.env.NODE_ENV || 'development',
3939
name: packageJson.name,
4040
description: packageJson.description || 'Express API Server',

server/src/common/config/version.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@
77
* Server version following semantic versioning (SemVer)
88
* Format: MAJOR.MINOR.PATCH
99
*/
10-
export const SERVER_VERSION = '1.2.7';
10+
export const SERVER_VERSION = '1.2.9';
1111

1212
/**
1313
* Build number for tracking specific builds
1414
* Typically incremented with each CI/CD build
1515
*/
16-
export const BUILD_NUMBER = '999';
16+
export const BUILD_NUMBER = '156';
1717

1818
/**
1919
* Build date in ISO format
2020
* Set during the build process
2121
*/
22-
export const BUILD_DATE = '2025-09-17T09:15:43.978Z';
22+
export const BUILD_DATE = '2025-09-17T09:57:19.3NZ';
2323

2424
/**
2525
* Git commit hash (short)
2626
* Useful for debugging and tracking specific builds
2727
*/
28-
export const COMMIT_HASH = '1a73403';
28+
export const COMMIT_HASH = 'cf7a493';
2929

3030
/**
3131
* Build environment

0 commit comments

Comments
 (0)