Makes environments consistent with cr-connect-frontend angular app
This commit is contained in:
parent
599ff28f8e
commit
6d3ffe8f35
29
angular.json
29
angular.json
|
@ -81,6 +81,35 @@
|
|||
"maximumError": "5mb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.test.ts"
|
||||
}
|
||||
],
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"extractCss": true,
|
||||
"namedChunks": false,
|
||||
"aot": true,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "2mb",
|
||||
"maximumError": "5mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb",
|
||||
"maximumError": "10kb"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
export const environment = {
|
||||
import {AppEnvironment} from 'sartography-workflow-lib';
|
||||
|
||||
export const environment: AppEnvironment = {
|
||||
production: true,
|
||||
api: 'https://crconnect.virginia.edu:5000',
|
||||
api: 'https://crconnect.virginia.edu',
|
||||
googleAnalyticsKey: '',
|
||||
irbUrl: 'https://www.irb.virginia.edu',
|
||||
irbUrl: 'https://www.irb.virginia.edu/index.cfm?fuseAction=ss_create.create',
|
||||
};
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
import {environment as environment_dev} from './environment';
|
||||
import {environment as environment_prod} from './environment.prod';
|
||||
import {environment as environment_staging} from './environment.staging';
|
||||
import {environment as environment_test} from './environment.test';
|
||||
|
||||
|
||||
describe('Environments', () => {
|
||||
it('should have settings for all the environments', () => {
|
||||
expect(environment_dev).toBeDefined();
|
||||
expect(environment_test).toBeDefined();
|
||||
expect(environment_staging).toBeDefined();
|
||||
expect(environment_prod).toBeDefined();
|
||||
});
|
||||
});
|
|
@ -4,5 +4,5 @@ export const environment: AppEnvironment = {
|
|||
production: true,
|
||||
api: 'http://workflow.sartography.com:5000/v1.0',
|
||||
googleAnalyticsKey: '',
|
||||
irbUrl: 'https://workflow.sartography.com:5001/pb',
|
||||
irbUrl: 'https://workflow.sartography.com:5001/pb/ui',
|
||||
};
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
import {AppEnvironment} from 'sartography-workflow-lib';
|
||||
|
||||
export const environment: AppEnvironment = {
|
||||
production: false,
|
||||
api: 'http://localhost:5000/v1.0',
|
||||
googleAnalyticsKey: '',
|
||||
irbUrl: 'https://localhost:5001/pb/ui',
|
||||
};
|
|
@ -1,21 +1,8 @@
|
|||
// This file can be replaced during build by using the `fileReplacements` array.
|
||||
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
||||
// The list of file replacements can be found in `angular.json`.
|
||||
|
||||
import {AppEnvironment} from 'sartography-workflow-lib';
|
||||
|
||||
export const environment: AppEnvironment = {
|
||||
production: false,
|
||||
api: 'http://localhost:5000/v1.0',
|
||||
googleAnalyticsKey: '',
|
||||
irbUrl: 'https://workflow.sartography.com:5001/pb',
|
||||
irbUrl: 'https://localhost:5001/pb/ui',
|
||||
};
|
||||
|
||||
/*
|
||||
* For easier debugging in development mode, you can import the following file
|
||||
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
||||
*
|
||||
* This import should be commented out in production mode because it will have a negative impact
|
||||
* on performance if an error is thrown.
|
||||
*/
|
||||
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
||||
|
|
Loading…
Reference in New Issue