Basically, this should let us specify at runtime what the URL of MeshDB is supposed to be. Whenever a request is made, the client fetches the URL of MeshDB from the NodeJS server, and then uses it to build a URL to make a request to. This works, and the current way doesn't, because in NextJS you're allowed to specify environment variables at runtime on the server.
It feels pretty janky, but what about this app isn't?
Basically, this should let us specify at runtime what the URL of MeshDB is supposed to be. Whenever a request is made, the client fetches the URL of MeshDB from the NodeJS server, and then uses it to build a URL to make a request to. This works, and the current way doesn't, because in NextJS you're allowed to specify environment variables at runtime on the server.
It feels pretty janky, but what about this app isn't?