optimism-java / dispute-explorer

A dispute explorer for superchains
MIT License
0 stars 0 forks source link

One click deployment #5

Closed fearlessfe closed 1 month ago

fearlessfe commented 1 month ago

There are some problems when start frontend image

  1. the frontend does not know what the current network is. eg mainnet, sepolia or base-sepolia. Current, the frontend use the domain to check what is the network. eg optimism-sepolia.superproof.wtf is sepolia. When you run local with docker, there is no domain name to match, so is will be the mainnet for default even if the backend service is sepolia
  2. the frontend must get the meilisearch key before it can startup

solutions

  1. the backend service exact know what the network is, so if there is an API to tell what the current network is
  2. find the way to get the api_key