I am looking for some type of environment variables, but not sencha's definition of them. Typically environment would be development, staging, production...

I have tried a few different ways to setup global variables so I can change my dev links to production links without going threw all the code. Everything works fine until I try to deploy the app, then I get undefined errors for all those variables.

Does anyone know the best way to do this?