Added app version to environment

This commit is contained in:
Mitchell McCaffrey 2020-08-07 14:35:30 +10:00
parent fd9659db98
commit e702936c44
3 changed files with 5 additions and 3 deletions

3
.env
View File

@ -1,2 +1,3 @@
REACT_APP_BROKER_URL=http://localhost:9000
REACT_APP_ICE_SERVERS_URL=http://localhost:9000/iceservers
REACT_APP_ICE_SERVERS_URL=http://localhost:9000/iceservers
REACT_APP_VERSION=$npm_package_version

View File

@ -1,2 +1,3 @@
REACT_APP_BROKER_URL=https://broker.owlbear.app
REACT_APP_ICE_SERVERS_URL=https://broker.owlbear.app/iceservers
REACT_APP_ICE_SERVERS_URL=https://broker.owlbear.app/iceservers
REACT_APP_VERSION=$npm_package_version

View File

@ -55,7 +55,7 @@ function Home() {
Join Game
</Button>
<Text variant="caption" as="p" sx={{ textAlign: "center" }}>
Beta v1.5.0 (preview)
Beta v{process.env.REACT_APP_VERSION}
</Text>
<Button
m={2}