app version and date fix

master
Tudor Stanciu 2022-09-26 19:03:03 +03:00
parent 3e79793c99
commit 79565b2c00
1 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,11 @@
const appInfo = require("./package.json");
const appVersion = appInfo.version ?? "0.0.0";
const appDate = new Date();
const dev = { const dev = {
NODE_ENV: "development", NODE_ENV: "development",
APP_VERSION: "0.0.0", APP_VERSION: appVersion,
APP_DATE: "1900-01-01", APP_DATE: appDate,
REVERSE_PROXY_API_URL: "http://localhost:5050", REVERSE_PROXY_API_URL: "http://localhost:5050",
CHATBOT_API_URL: "http://localhost:5061", CHATBOT_API_URL: "http://localhost:5061",
REVERSE_PROXY_DOCS_URL: "https://toodle.ddns.net/hedgedoc/s/UkJ6S5NJz" REVERSE_PROXY_DOCS_URL: "https://toodle.ddns.net/hedgedoc/s/UkJ6S5NJz"
@ -9,8 +13,8 @@ const dev = {
const prod = { const prod = {
NODE_ENV: "production", NODE_ENV: "production",
APP_VERSION: "0.0.0", APP_VERSION: appVersion,
APP_DATE: "1900-01-01", APP_DATE: appDate,
PUBLIC_URL: "/reverse-proxy", PUBLIC_URL: "/reverse-proxy",
REVERSE_PROXY_API_URL: "https://toodle.ddns.net/reverse-proxy-api", REVERSE_PROXY_API_URL: "https://toodle.ddns.net/reverse-proxy-api",
CHATBOT_API_URL: "https://toodle.ddns.net/chatbot-api", CHATBOT_API_URL: "https://toodle.ddns.net/chatbot-api",