Changed the way client JS finds the environment. Cannot use root/lib/env.js because it's compiled during development and will always say 'local'. Had to make a script that was more flexible.