Skip to content

Commit 152364e

Browse files
justinmk3ctiddC Tidd
authored
fix(codecatalyst): get MDE endpoint from MDE-provided env var
Co-authored-by: C Tidd <[email protected]> Co-authored-by: C Tidd <[email protected]>
1 parent 11020bb commit 152364e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Use MDE endpoint set by environment variable"
4+
}

src/shared/clients/devenvClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { getCodeCatalystDevEnvId } from '../vscode/env'
1111
import { ExtensionUserActivity } from '../extensionUtilities'
1212

1313
const environmentAuthToken = '__MDE_ENV_API_AUTHORIZATION_TOKEN'
14-
const environmentEndpoint = 'http://127.0.0.1:1339'
14+
const environmentEndpoint = process.env['__MDE_ENVIRONMENT_API'] ?? 'http://127.0.0.1:1339'
1515

1616
/**
1717
* Client to the MDE quasi-IMDS localhost endpoint.

0 commit comments

Comments
 (0)