Newer
Older
/*
Environment Variables outside of angular.
This is so we can alter the contents of this file outside of doing a rebuild and deploy.
A service in angular will capture this info and add it to a service
*/
(function (window) {
window.__env = window.__env || {};

Reid Givens
committed
switch (window.location.hostname) {
case 'archive-test.nrao.edu':
window.__env.configUrl = 'https://archive-test.nrao.edu/VlassMngr/services/configuration';
break;
case 'archive-new.nrao.edu':
window.__env.configUrl = 'https://archive-new.nrao.edu/VlassMngr/services/configuration';
break;
case 'localhost':
window.__env.configUrl = 'http://localhost:8080/VlassMngr/services/configuration';
break;

Reid Givens
committed
default:
window.__env.configUrl = 'https://webtest.aoc.nrao.edu/VlassMngr/services/configuration';
break;
}

Reid Givens
committed
/**
* If you need to overwrite this for this server, use the following
*/
// window.__env.configUrl = 'https://webtest.aoc.nrao.edu/VlassMngr/services/configuration';