This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(query): fix provider dependencies for local env using feature-flag
- Loading branch information
1 parent
27db8f6
commit e569abf
Showing
2 changed files
with
18 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
import { FABRIC8_FEATURE_TOGGLES_API_URL } from 'ngx-feature-flag'; | ||
|
||
let witApiUrlFactory = () => { | ||
return process.env.FABRIC8_WIT_API_URL; | ||
}; | ||
|
||
// for now use wit proxy for toggles-services | ||
export let togglesApiUrlProvider = { | ||
provide: FABRIC8_FEATURE_TOGGLES_API_URL as InjectionToken<string>, | ||
useFactory: witApiUrlFactory | ||
}; |