Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.3 KB

File metadata and controls

40 lines (29 loc) · 1.3 KB

Build playground environment

Run the script

  • you can run the script anywhere but make sure the generated config file are placed in config.js
cd packages/playground/public
bash ../scripts/build-env.sh

Required env vars

  • By default, it runs on dev mode. the values already sat on the config file. if you want to change the mode

    export MODE=dev | qa | test | main
  • The user is now restricted to using only the following four networks main, dev, qa and test. If not set the network's default urls will be used.

    • GRAPHQL_URL
    • GRIDPROXY_URL
    • SUBSTRATE_URL
    • ACTIVATION_SERVICE_URL
    • RELAY_DOMAIN
    • BRIDGE_TFT_ADDRESS
    • STATS_URL
    • KYC_URL
    • STELLAR_NETWORK
    • SENTRY_DSN
    • ENABLE_TELEMETRY
  • The use can provide a single URL or multiple URLs separated with a comma, for GRAPHQL_URL, GRIDPROXY_URL, SUBSTRATE_URL, ACTIVATION_SERVICE_URL, RELAY_DOMAIN, STATS_URL, If the user provides multiple URLs, it will be considered as a priority list, which means the dashboard will try to connect over the first URL in the list; if it fails, it will move to the next one, and so on.

  • The backend payments are done with stellar so you need to decide which network of stellar you want to connect to

    export STELLAR_NETWORK=test | main