From 90bc3b8fa157f570987e85a709d336f1f112ae1f Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 18 Oct 2023 02:32:47 +0100 Subject: [PATCH] make build id smaller --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 81a1b1f..d2d2cbb 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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(); }