aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/config/sdc-config.config.factory.ts
blob: b0fa17d3b66ac3a7a546ec2eb55044f0a1f07c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
declare const __ENV__:string;

export interface ISdcConfig {
    [index:string]: any
}

export function getSdcConfig() : ISdcConfig {
    let sdcConfig:ISdcConfig = {};

    if (__ENV__==='prod') {
        sdcConfig = require('./../../../../configurations/prod.js');
    } else {
        sdcConfig = require('./../../../../configurations/dev.js');
    }

    return sdcConfig;
}