Skip to content

Use local API URL when running in production

Compare
Choose a tag to compare
@zartre zartre released this 29 Apr 01:26
· 14 commits to master since this release

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";