generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove ClientHostManager instanciation in the SDK (#332)
- Loading branch information
Showing
3 changed files
with
2 additions
and
33 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,30 +1,6 @@ | ||
import { | ||
ANALYTICS_ITEMS_PREFIX, | ||
BUILDER_ITEMS_PREFIX, | ||
LIBRARY_ITEMS_PREFIX, | ||
PLAYER_ITEMS_PREFIX, | ||
PROD_ANALYTICS_HOST, | ||
PROD_BUILDER_HOST, | ||
PROD_LIBRARY_HOST, | ||
PROD_PLAYER_HOST, | ||
} from './constants'; | ||
import { Context } from './constants/context'; | ||
import { ClientHostManager } from './interfaces/shortLink'; | ||
|
||
export * from './utils'; | ||
export * from './constants'; | ||
export * from './interfaces'; | ||
export * from './services'; | ||
export * from './config'; | ||
export * from './types'; | ||
|
||
// Instanciate and add prefix and default host for the diffrent contexts. | ||
ClientHostManager.getInstance() | ||
.addPrefix(Context.Builder, BUILDER_ITEMS_PREFIX) | ||
.addPrefix(Context.Library, LIBRARY_ITEMS_PREFIX) | ||
.addPrefix(Context.Player, PLAYER_ITEMS_PREFIX) | ||
.addPrefix(Context.Analytics, ANALYTICS_ITEMS_PREFIX) | ||
.addHost(Context.Builder, new URL(PROD_BUILDER_HOST)) | ||
.addHost(Context.Library, new URL(PROD_LIBRARY_HOST)) | ||
.addHost(Context.Player, new URL(PROD_PLAYER_HOST)) | ||
.addHost(Context.Analytics, new URL(PROD_ANALYTICS_HOST)); |
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