From 70515e584fad6f5caa51b180d96071990807f65a Mon Sep 17 00:00:00 2001 From: SirStendec Date: Mon, 7 Oct 2024 16:50:51 -0400 Subject: [PATCH] * Maintenance: Update the build script to not require local `git` if we have a commit hash already. --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 28e71efa..1b7b4df4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -39,7 +39,9 @@ console.log('FILE PATH:', FILE_PATH); const VERSION = semver.parse(require('./package.json').version); const commit_hash = DEV_SERVER ? null - : execSync('git rev-parse HEAD').toString().trim(); + : process.env.CLIENT_COMMIT?.length > 0 + ? process.env.CLIENT_COMMIT + : execSync('git rev-parse HEAD').toString().trim(); // The Config