mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix checks for env vars
This commit is contained in:
parent
3b0338967d
commit
3f707c06f2
1 changed files with 5 additions and 0 deletions
|
|
@ -200,6 +200,11 @@ const sendUpdateSubscriptionMutation = async (
|
|||
lastFetchedChecksum: string,
|
||||
scheduledAt: Date
|
||||
) => {
|
||||
if (!process.env.INTERNAL_API_URL || !env.server.jwtSecret) {
|
||||
throw new Error(
|
||||
'Can not send update subscription, environment not configured.'
|
||||
)
|
||||
}
|
||||
const JWT_SECRET = env.server.jwtSecret
|
||||
const REST_BACKEND_ENDPOINT = `${process.env.INTERNAL_API_URL}/api`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue