From 79565b2c00eb4000e9940b958a455f7838c0f615 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 26 Sep 2022 19:03:03 +0300 Subject: [PATCH] app version and date fix --- config.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index 673851e..2905248 100644 --- a/config.js +++ b/config.js @@ -1,7 +1,11 @@ +const appInfo = require("./package.json"); +const appVersion = appInfo.version ?? "0.0.0"; +const appDate = new Date(); + const dev = { NODE_ENV: "development", - APP_VERSION: "0.0.0", - APP_DATE: "1900-01-01", + APP_VERSION: appVersion, + APP_DATE: appDate, REVERSE_PROXY_API_URL: "http://localhost:5050", CHATBOT_API_URL: "http://localhost:5061", REVERSE_PROXY_DOCS_URL: "https://toodle.ddns.net/hedgedoc/s/UkJ6S5NJz" @@ -9,8 +13,8 @@ const dev = { const prod = { NODE_ENV: "production", - APP_VERSION: "0.0.0", - APP_DATE: "1900-01-01", + APP_VERSION: appVersion, + APP_DATE: appDate, PUBLIC_URL: "/reverse-proxy", REVERSE_PROXY_API_URL: "https://toodle.ddns.net/reverse-proxy-api", CHATBOT_API_URL: "https://toodle.ddns.net/chatbot-api",