Skip to content

Commit

Permalink
feat: split API URLs into two env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 authored Jan 4, 2024
1 parent 9576849 commit 980562f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ export function getConfig() {
}
if (process.env.BLOCKSTACK_API_URL) {
bskConfig.network.blockstackAPIUrl = process.env.BLOCKSTACK_API_URL
bskConfig.network.coreApiUrl = process.env.BLOCKSTACK_API_URL
}

if (process.env.BLOCKSTACK_CORE_URL) {
bskConfig.network.coreApiUrl = process.env.BLOCKSTACK_CORE_URL

Check warning on line 103 in src/config.js

View check run for this annotation

Codecov / codecov/patch

src/config.js#L102-L103

Added lines #L102 - L103 were not covered by tests
}

config.winstonConfig = {
Expand Down

0 comments on commit 980562f

Please sign in to comment.