Skip to content

Commit

Permalink
refactor(handlers info): set default CONTRACT_ID in code instead of d…
Browse files Browse the repository at this point in the history
…ocker-compose

This is more in line with how we handle other defaults and may save
users some hassle having to rebuild containers.
  • Loading branch information
djwhitt committed Oct 29, 2023
1 parent 4dd26c8 commit 852e44b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
- ARNS_ROOT_HOST=${ARNS_ROOT_HOST:-}
- SANDBOX_PROTOCOL=${SANDBOX_PROTOCOL:-}
- START_WRITERS=${START_WRITERS:-}
- CONTRACT_ID=${CONTRACT_ID:-bLAgYxAdX2Ry-nt6aH2ixgvJXbpsEYm28NgJgyqfs-U}
- CONTRACT_ID=${CONTRACT_ID:-}

observer:
image: ghcr.io/ar-io/ar-io-observer:${OBSERVER_IMAGE_TAG:-42c909257f9907f2aef9957b70474207f0cfc78d}
Expand All @@ -64,5 +64,5 @@ services:
environment:
- PORT=5000
- OBSERVER_WALLET=${OBSERVER_WALLET:-<example>}
- CONTRACT_ID=${CONTRACT_ID:-bLAgYxAdX2Ry-nt6aH2ixgvJXbpsEYm28NgJgyqfs-U}
- CONTRACT_ID=${CONTRACT_ID:-}
- RUN_OBSERVER=${RUN_OBSERVER:-true}
5 changes: 4 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@ export const ROOT_HOST_SUBDOMAIN_LENGTH =
export const SANDBOX_PROTOCOL = env.varOrUndefined('SANDBOX_PROTOCOL');
export const START_WRITERS =
env.varOrDefault('START_WRITERS', 'true') === 'true';
export const CONTRACT_ID = env.varOrUndefined('CONTRACT_ID');
export const CONTRACT_ID = env.varOrDefault(
'CONTRACT_ID',
'bLAgYxAdX2Ry-nt6aH2ixgvJXbpsEYm28NgJgyqfs-U',
);

0 comments on commit 852e44b

Please sign in to comment.