Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
resolve(context);
} else if (process.env.NODE_ENV === 'staging') {
context = {
API_URL: 'https://dashboard-api.vibioh.fr',
AUTH_URL: 'https://dashboard-auth.vibioh.fr',
BASIC_AUTH_ENABLED: 'false',
ENVIRONMENT: 'dev',
GITHUB_AUTH_ENABLED: 'true',
WS_URL: 'wss://dashboard-api.vibioh.fr/ws',
};
resolve(context);
} else {
funtch.get('/env').then(env => {
context = env;
resolve(context);
});
}
});
}