grey-software / toonin

Technology that allows you to tune in to your friends and family in realtime using peer-to-peer sharing.
https://toonin.grey.software
MIT License
67 stars 6 forks source link

Changed serverUrl based on NODE_ENV #201

Closed ArsalaBangash closed 4 years ago

ArsalaBangash commented 4 years ago

Addresses the following point from https://github.com/grey-software/toonin/issues/167

Add a config file where a developer can specify local/prod URL settings

Setting up a .env with a config turned out to be pretty troublesome, so we'll only change the serverUrl based on the NODE_ENV, which is set to development for the start script, and production for the build script