Remove build hash from release builds (#2974)

This commit is contained in:
Devin Binnie 2024-03-11 09:07:59 -04:00 committed by GitHub
parent 9b36c25e4e
commit 4eec77d299
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ const webpack = require('webpack');
const VERSION = childProcess.execSync('git rev-parse --short HEAD').toString();
const isProduction = process.env.NODE_ENV === 'production';
const isTest = process.env.NODE_ENV === 'test';
const isRelease = process.env.CIRCLE_BRANCH && process.env.CIRCLE_BRANCH.startsWith('release-');
const isRelease = process.env.GITHUB_WORKFLOW && process.env.GITHUB_WORKFLOW.startsWith('release');
const codeDefinitions = {
__HASH_VERSION__: !isRelease && JSON.stringify(VERSION),