nycmeshnet / meshforms

Frontend for common meshdb operations
1 stars 2 forks source link

Fetch MeshDB URL from server #74

Closed WillNilges closed 3 months ago

WillNilges commented 3 months ago

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?

WillNilges commented 3 months ago

With this, we should be able to revert some of #70 and go back to using one image: https://github.com/nycmeshnet/meshforms/pull/70