urbit / bridge

An application for interacting with Azimuth.
MIT License
98 stars 25 forks source link

api: configurable Roller endpoint via env #976

Closed tomholford closed 2 years ago

tomholford commented 2 years ago

Before this change, Bridge was configured to only use the L2 roller provided by Tlon.

This change allows a Bridge user to use one or more runtime env vars to connect to a custom roller.

For example:

REACT_APP_ROLLER_HOST=my-personal-roller.net npm run pilot-mainnet

The following are configurable, and will otherwise fallback to the defaults in constants:

Resolves #974