Skip to content

Commit

Permalink
Merge pull request #4 from blockfrost/fix-build
Browse files Browse the repository at this point in the history
fix: build
  • Loading branch information
vladimirvolek committed Sep 27, 2022
2 parents d5234e9 + 48122bc commit 4425adc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import config from 'config';

import { CARDANO_NETWORKS, Network } from './types/common';

export const loadConfig = () => {
// server
const listenAddress = process.env.BLOCKFROST_CONFIG_SERVER_LISTEN_ADDRESS
?? config.get<string>('server.listenAddress');
const listenAddress =
process.env.BLOCKFROST_CONFIG_SERVER_LISTEN_ADDRESS ??
config.get<string>('server.listenAddress');
const port = process.env.BLOCKFROST_CONFIG_SERVER_PORT
? Number(process.env.BLOCKFROST_CONFIG_SERVER_PORT)
: config.get<number>('server.port');
Expand Down

0 comments on commit 4425adc

Please sign in to comment.