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
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:
@@ -74,6 +74,7 @@ services:
|
|||||||
- APP_BASE_URL=${APP_BASE_URL:-}
|
- APP_BASE_URL=${APP_BASE_URL:-}
|
||||||
- HEARTBEAT_INTERVAL=${HEARTBEAT_INTERVAL:-30000}
|
- HEARTBEAT_INTERVAL=${HEARTBEAT_INTERVAL:-30000}
|
||||||
- DEBUG=${TG_BOT_DEBUG:-}
|
- DEBUG=${TG_BOT_DEBUG:-}
|
||||||
|
- PUBLIC_API_URL=${PUBLIC_API_URL:-}
|
||||||
depends_on:
|
depends_on:
|
||||||
couchdb:
|
couchdb:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
@@ -14,10 +14,6 @@ if (!process.env.API_URL) {
|
|||||||
throw new Error("Environment variable API_URL is not set");
|
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) {
|
if (!process.env.HEARTBEAT_INTERVAL) {
|
||||||
throw new Error("Environment variable HEARTBEAT_INTERVAL is not set");
|
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,
|
READ_BASE_URL: process.env.READ_BASE_URL,
|
||||||
APP_BASE_URL: process.env.APP_BASE_URL,
|
APP_BASE_URL: process.env.APP_BASE_URL,
|
||||||
API_URL: process.env.API_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),
|
HEARTBEAT_INTERVAL: parseInt(process.env.HEARTBEAT_INTERVAL, 10),
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
Reference in New Issue
Block a user