app version and date fix
parent
3e79793c99
commit
79565b2c00
12
config.js
12
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",
|
||||
|
|
Loading…
Reference in New Issue