mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
Rename HEARTBEATS_ENDPOINT to HEARTBEAT_ENDPOINT (#190)
To match the env var of deployment code
This commit is contained in:
parent
f060d953ec
commit
d2a0f9d4e7
3 changed files with 6 additions and 6 deletions
|
|
@ -41,10 +41,10 @@ export async function main() {
|
|||
const errorCachingInterval = ms('10m');
|
||||
|
||||
const stopHeartbeats =
|
||||
typeof process.env.HEARTBEATS_ENDPOINT === 'string' && process.env.HEARTBEATS_ENDPOINT.length > 0
|
||||
typeof process.env.HEARTBEAT_ENDPOINT === 'string' && process.env.HEARTBEAT_ENDPOINT.length > 0
|
||||
? startHeartbeats({
|
||||
enabled: true,
|
||||
endpoint: process.env.HEARTBEATS_ENDPOINT,
|
||||
endpoint: process.env.HEARTBEAT_ENDPOINT,
|
||||
intervalInMS: 20_000,
|
||||
onError: server.log.error,
|
||||
isReady: readiness,
|
||||
|
|
|
|||
|
|
@ -53,10 +53,10 @@ async function main() {
|
|||
});
|
||||
|
||||
const stopHeartbeats =
|
||||
typeof process.env.HEARTBEATS_ENDPOINT === 'string' && process.env.HEARTBEATS_ENDPOINT.length > 0
|
||||
typeof process.env.HEARTBEAT_ENDPOINT === 'string' && process.env.HEARTBEAT_ENDPOINT.length > 0
|
||||
? startHeartbeats({
|
||||
enabled: true,
|
||||
endpoint: process.env.HEARTBEATS_ENDPOINT,
|
||||
endpoint: process.env.HEARTBEAT_ENDPOINT,
|
||||
intervalInMS: 20_000,
|
||||
onError: server.log.error,
|
||||
isReady: readiness,
|
||||
|
|
|
|||
|
|
@ -44,10 +44,10 @@ async function main() {
|
|||
});
|
||||
|
||||
const stopHeartbeats =
|
||||
typeof process.env.HEARTBEATS_ENDPOINT === 'string' && process.env.HEARTBEATS_ENDPOINT.length > 0
|
||||
typeof process.env.HEARTBEAT_ENDPOINT === 'string' && process.env.HEARTBEAT_ENDPOINT.length > 0
|
||||
? startHeartbeats({
|
||||
enabled: true,
|
||||
endpoint: process.env.HEARTBEATS_ENDPOINT,
|
||||
endpoint: process.env.HEARTBEAT_ENDPOINT,
|
||||
intervalInMS: 20_000,
|
||||
onError: server.log.error,
|
||||
isReady: readiness,
|
||||
|
|
|
|||
Loading…
Reference in a new issue