Use local API URL when running in production
In this release, we have changed the API URL in globarVars.js
to use the local one when running in production
. This is because the API server resides in the same physical server as the Web server. The change should bring a decrease in API call latency.
const apiHostname =
process.env.NODE_ENV == "production"
? "http://127.0.0.1:9000"
: "https://api.space.itforge.io";