Skip to content

Commit 1c7dfd5

Browse files
committed
Dynamic experiments host
1 parent e9aedea commit 1c7dfd5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/experiments.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ export class ExperimentalSettings {
2323
key: string,
2424
extensionVersion: string,
2525
private readonly sessionService: ISessionService,
26-
private readonly context: vscode.ExtensionContext,
2726
private readonly logger: ILogService
2827
) {
28+
const config = vscode.workspace.getConfiguration('gitpod');
29+
const host = config.get<string>('host');
30+
2931
this.configcatClient = configcat.createClientWithLazyLoad(key, {
30-
baseUrl: new URL('/configcat', this.context.extensionMode === vscode.ExtensionMode.Production ? 'https://gitpod.io' : 'https://gitpod-staging.com').href,
32+
baseUrl: new URL('/configcat', host).href,
3133
logger: {
3234
debug(): void { },
3335
log(): void { },

0 commit comments

Comments
 (0)