Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: split API URLs into two env vars #106

Merged
merged 2 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12
FROM node:12.22.12-bullseye-slim


# Update apt and install wget
Expand Down
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 @@
}
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
Loading