planetarium / 9c-board

web viewer of NineChronicles states
https://9c-board.nine-chronicles.dev/
GNU Affero General Public License v3.0
4 stars 8 forks source link

feat: adjust way to setup network #53

Closed moreal closed 4 months ago

moreal commented 4 months ago

First, I'm sorry to make a big one commit. 😥 But I'll write detailed explanations about changes.

Network

This part is the most important in this pull request. Since https://github.com/planetarium/mimir/pull/189, MImir became to handle one network per one instance. And they have each endpoint and they are separated by the first path parameter (https://mimir.nine-chronicles.dev/<network>).

When I made the changes, I thought internal mimir and mainnet mimir can be merged into one url. In other words, I expected https://internal-mimir.nine-chronicles.dev/heimdall to become https://mimir.nine-chronicles.dev/heimdall-internal because https://mimir.nine-chronicles.dev is just a root url not mimir instance.

We kept MIMIR_GRAPHQL_URL_MAP because you can still put your own hosted mimirs in it, but we simplified the complexity of splitting internal mimirs and mimirs and interpreting them as NodeType and PlanetName.

In the process, I simply changed the original odin-main back to odin. I also redirected odin-main to odin to avoid breaking links for existing users and heimdall. Check out the changes to the following.config.js file. I've also fixed it in the README.

Documentation

I have changes documentations: