Skip to content

Commit ba94023

Browse files
committed
chore: update version string format
1 parent 9f677f3 commit ba94023

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function getVersion(): string {
2929
return readFileSync(SERVER_VERSION_FILE_PATH, "utf-8");
3030
}
3131

32-
const serverVersion = `${getDateVersion()}.${COMMIT_HASH}`;
32+
const serverVersion = `${getDateVersion()}_${COMMIT_HASH}`;
3333
writeFileSync(SERVER_VERSION_FILE_PATH, serverVersion);
3434

3535
return serverVersion;

frontend/vite.config.prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ function buildClientVersion() {
3434
.execSync("git rev-parse --short HEAD")
3535
.toString();
3636

37-
return `${version}.${commitHash}`.replace(/\n/g, "");
37+
return `${version}_${commitHash}`.replace(/\n/g, "");
3838
} catch (e) {
39-
return `${version}.unknown-hash`;
39+
return `${version}_unknown-hash`;
4040
}
4141
}
4242

0 commit comments

Comments
 (0)