aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-08-19 14:21:05 -0700
committerAnton Tananaev <anton@traccar.org>2023-08-19 14:21:05 -0700
commit706b1a1cfb518b85eb5271f3e25a27dd4bd3a804 (patch)
tree629826201fb29d17dd8c7151569ea90fd2ce5218 /modern
parent749f1824acfd7fbeef2c0c958ffc0e5ce0a7344f (diff)
downloadtrackermap-web-706b1a1cfb518b85eb5271f3e25a27dd4bd3a804.tar.gz
trackermap-web-706b1a1cfb518b85eb5271f3e25a27dd4bd3a804.tar.bz2
trackermap-web-706b1a1cfb518b85eb5271f3e25a27dd4bd3a804.zip
Fix app version
Diffstat (limited to 'modern')
-rw-r--r--modern/.env3
-rw-r--r--modern/src/settings/PreferencesPage.jsx2
2 files changed, 2 insertions, 3 deletions
diff --git a/modern/.env b/modern/.env
index cb3c347e..410670a6 100644
--- a/modern/.env
+++ b/modern/.env
@@ -1,2 +1 @@
-ESLINT_NO_DEV_ERRORS=false
-REACT_APP_VERSION=$npm_package_version
+VITE_APP_VERSION=$npm_package_version
diff --git a/modern/src/settings/PreferencesPage.jsx b/modern/src/settings/PreferencesPage.jsx
index a05924a9..b83e7095 100644
--- a/modern/src/settings/PreferencesPage.jsx
+++ b/modern/src/settings/PreferencesPage.jsx
@@ -65,7 +65,7 @@ const PreferencesPage = () => {
const user = useSelector((state) => state.session.user);
const [attributes, setAttributes] = useState(user.attributes);
- const versionApp = process.env.REACT_APP_VERSION.slice(0, -2);
+ const versionApp = import.meta.env.VITE_APP_VERSION.slice(0, -2);
const versionServer = useSelector((state) => state.session.server.version);
const socket = useSelector((state) => state.session.socket);