Skip to content

Commit

Permalink
getEnvOrDieInProd
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota002 committed Jul 17, 2024
1 parent 5009c27 commit 2032c39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/lib/kafka.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import {
} from 'kafkajs'
import memoizee from 'memoizee'

import { domain, getEnvOrDie, getEnvOrDieInProduction } from './env.server'
import { domain, getEnvOrDieInProduction } from './env.server'
import type { User } from '~/routes/_auth/user.server'

const client_id = getEnvOrDie('KAFKA_CLIENT_ID')
const client_secret = getEnvOrDie('KAFKA_CLIENT_SECRET')
const client_id = getEnvOrDieInProduction('KAFKA_CLIENT_ID') ?? ''
const client_secret = getEnvOrDieInProduction('KAFKA_CLIENT_SECRET')
const kafka = new Kafka({
client_id,
client_secret,
Expand Down

0 comments on commit 2032c39

Please sign in to comment.