show commit ref on home page on netlify

This commit is contained in:
Esteban Abaroa
2023-05-24 22:30:49 +00:00
parent ee0261fdec
commit 37b37b04fc
4 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -9,6 +9,8 @@ import OfflineIndicator from '../OfflineIndicator';
import packageJson from '../../../package.json'
import { Tooltip } from 'react-tooltip';
const {version} = packageJson
// show commit ref on netlify to know which commit is being served for debugging
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : ''
const Home = () => {
@@ -184,7 +186,7 @@ const Home = () => {
fontSize: "11px",
marginBottom: "2em",
}}>
plebchan v{version}. GPL-2.0
plebchan v{version}{commitRef}. GPL-2.0
</div>
</Container>
</>