fix PUBLIC_API_URL env
Deploy app frontend / app frontend (push) Successful in 2m45s
Deploy service couchdb / service couchdb (push) Successful in 28s
Deploy db-migrations / db-migrations (push) Successful in 1m48s
Deploy service tg-bot / service tg-bot (push) Successful in 2m0s
Deploy service message-delivery-method-web-push / service message-delivery-method-web-push (push) Successful in 2m16s

This commit is contained in:
2024-12-15 10:28:27 +02:00
parent 23fc3a3aa4
commit 7125123c5f
2 changed files with 3 additions and 5 deletions
+1
View File
@@ -74,6 +74,7 @@ services:
- APP_BASE_URL=${APP_BASE_URL:-}
- HEARTBEAT_INTERVAL=${HEARTBEAT_INTERVAL:-30000}
- DEBUG=${TG_BOT_DEBUG:-}
- PUBLIC_API_URL=${PUBLIC_API_URL:-}
depends_on:
couchdb:
condition: service_healthy
+2 -5
View File
@@ -14,10 +14,6 @@ if (!process.env.API_URL) {
throw new Error("Environment variable API_URL is not set");
}
if (!process.env.PUBLIC_API_URL) {
throw new Error("Environment variable PUBLIC_API_URL is not set");
}
if (!process.env.HEARTBEAT_INTERVAL) {
throw new Error("Environment variable HEARTBEAT_INTERVAL is not set");
}
@@ -27,6 +23,7 @@ export const env = {
READ_BASE_URL: process.env.READ_BASE_URL,
APP_BASE_URL: process.env.APP_BASE_URL,
API_URL: process.env.API_URL,
PUBLIC_API_URL: process.env.PUBLIC_API_URL,
PUBLIC_API_URL:
process.env.PUBLIC_API_URL || `${process.env.APP_BASE_URL}/api`,
HEARTBEAT_INTERVAL: parseInt(process.env.HEARTBEAT_INTERVAL, 10),
} as const;