-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from ns1labs/feature/ui-ng-environment
feat(ui-env-config): minor improvements on environment config.
- Loading branch information
Showing
2 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import { environment as defaultEnvironment } from './environment.defaults'; | ||
|
||
const {sinksUrl, agentsUrl, agentGroupsUrl, orbApi: {apiUrl, version}} = defaultEnvironment; | ||
const {orbApi: {apiUrl, version, urlKeys}} = defaultEnvironment; | ||
|
||
export const environment = { | ||
production: true, | ||
|
||
...defaultEnvironment, | ||
// ORB api --prod | ||
// override all urls prepend /api/v<#>/<service_url> | ||
sinksUrl: `${apiUrl}${version}${sinksUrl}`, | ||
agentsUrl: `${apiUrl}${version}${agentsUrl}`, | ||
agentGroupsUrl: `${apiUrl}${version}${agentGroupsUrl}`, | ||
...urlKeys.map(key => ({[key]: `${apiUrl}${version}${defaultEnvironment[key]}`})), | ||
}; |