envConfig.$inject = ['envServiceProvider'];


export default function envConfig(envServiceProvider) {
    // set the domains and variables for each environment
    envServiceProvider.config({
        domains: {
            development: ['localhost', 'development.wonderflow.co']
                // anotherStage: ['domain1', 'domain2'],
                // anotherStage: ['domain1', 'domain2']
        },
        vars: {
            development: {
                SCHEME: process.env.SCHEME,
                HOST: process.env.HOST,
                DB_URL_COMPONENT: process.env.DB_URL_COMPONENT,
                DATA_EXPORT_SERVER_HOST: process.env.DATA_EXPORT_SERVER_HOST,
                WS_HOST: process.env.WS_HOST
            }
        }
    });

    // run the environment check, so the comprobation is made
    // before controllers and services are built
    envServiceProvider.check();
};