This commit is contained in:
parent
b8795de9e2
commit
90bc3b8fa1
@ -15,7 +15,7 @@ const production = !process.env.ROLLUP_WATCH;
|
||||
|
||||
let buildVersion;
|
||||
if (production) {
|
||||
buildVersion = process.env.GIT_REV; // latest commit hash
|
||||
buildVersion = process.env.GIT_REV.substring(0, 7); // latest commit hash
|
||||
} else {
|
||||
buildVersion = execSync("git rev-parse --short HEAD").toString();
|
||||
}
|
||||
|
Reference in New Issue
Block a user