hashgraph / hedera-sourcify

Tools for verifying Hedera smart contracts using standard open source libraries.
Apache License 2.0
6 stars 7 forks source link

URL of server and repository are fixed at build time in ui #20

Closed svienot closed 10 months ago

svienot commented 10 months ago

Problem

React-based ui can only be configured at build time by means of REACT_APP_XXX environment variables. Because of that, the URL of the server and repository services are set at build time, which means that these URLs are hardcoded in the docker image and a given docker image cannot be used in different environments.

Solution

Apply change similar to the one previously done for h5ai-nginx subcomponent: use docker entrypoint to patch index.html and pass custom variables via the global window object.

Alternatives

No response