Ng not ejected anymore
This commit is contained in:
23
hooks/environments/app.config.ts.tpl
Normal file
23
hooks/environments/app.config.ts.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
import { CONF_LOCAL } from '../environments/environment.local';
|
||||
import { CONF_DEV } from '../environments/environment.dev';
|
||||
import { CONF_PROD } from '../environments/environment.prod';
|
||||
|
||||
const ENV = 'PROFILE';
|
||||
|
||||
const LOCAL: String = 'local';
|
||||
const DEV: String = 'dev';
|
||||
const PROD: String = 'prod';
|
||||
|
||||
let conf: any;
|
||||
|
||||
console.log('Env', ENV);
|
||||
|
||||
if (ENV === PROD) {
|
||||
conf = CONF_PROD;
|
||||
} else if (ENV === DEV) {
|
||||
conf = CONF_DEV;
|
||||
} else {
|
||||
conf = CONF_LOCAL;
|
||||
}
|
||||
|
||||
export const AppConfig = Object.assign({}, conf);
|
||||
Reference in New Issue
Block a user