mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Update config.ts
This commit is contained in:
@@ -2,25 +2,25 @@
|
|||||||
import { OpaqueToken } from '@angular/core';
|
import { OpaqueToken } from '@angular/core';
|
||||||
|
|
||||||
interface ServerConfig {
|
interface ServerConfig {
|
||||||
"nameSpace": string,
|
"nameSpace": string;
|
||||||
"protocol": string,
|
"protocol": string;
|
||||||
"address": string,
|
"address": string;
|
||||||
"port": number,
|
"port": number;
|
||||||
"baseUrl": string
|
"baseUrl": string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface GlobalConfig {
|
interface GlobalConfig {
|
||||||
"production": boolean,
|
"production": boolean;
|
||||||
"rest": ServerConfig,
|
"rest": ServerConfig;
|
||||||
"ui": ServerConfig,
|
"ui": ServerConfig;
|
||||||
"cache": {
|
"cache": {
|
||||||
"msToLive": number,
|
"msToLive": number,
|
||||||
"control": string
|
"control": string
|
||||||
},
|
};
|
||||||
"universal": {
|
"universal": {
|
||||||
"preboot": boolean,
|
"preboot": boolean,
|
||||||
"async": boolean
|
"async": boolean
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const GLOBAL_CONFIG = new OpaqueToken('config');
|
const GLOBAL_CONFIG = new OpaqueToken('config');
|
||||||
@@ -46,7 +46,7 @@ switch (process.env.NODE_ENV) {
|
|||||||
EnvConfigFile = './environment.test.js';
|
EnvConfigFile = './environment.test.js';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.warn('Environment file not specified. Using default.')
|
console.warn('Environment file not specified. Using default.');
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user