From e702936c4494f2c47ab6df2aacd7025d9c88e2c3 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 7 Aug 2020 14:35:30 +1000 Subject: [PATCH] Added app version to environment --- .env | 3 ++- .env.production | 3 ++- src/routes/Home.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.env b/.env index f2f811d..00465e2 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ REACT_APP_BROKER_URL=http://localhost:9000 -REACT_APP_ICE_SERVERS_URL=http://localhost:9000/iceservers \ No newline at end of file +REACT_APP_ICE_SERVERS_URL=http://localhost:9000/iceservers +REACT_APP_VERSION=$npm_package_version \ No newline at end of file diff --git a/.env.production b/.env.production index 3305ecc..c37dac6 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,3 @@ REACT_APP_BROKER_URL=https://broker.owlbear.app -REACT_APP_ICE_SERVERS_URL=https://broker.owlbear.app/iceservers \ No newline at end of file +REACT_APP_ICE_SERVERS_URL=https://broker.owlbear.app/iceservers +REACT_APP_VERSION=$npm_package_version \ No newline at end of file diff --git a/src/routes/Home.js b/src/routes/Home.js index fff5916..d1ca57b 100644 --- a/src/routes/Home.js +++ b/src/routes/Home.js @@ -55,7 +55,7 @@ function Home() { Join Game - Beta v1.5.0 (preview) + Beta v{process.env.REACT_APP_VERSION}