-
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.
feat: move api and web url to vscode configuration (#60)
- Loading branch information
Showing
4 changed files
with
27 additions
and
12 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
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,3 +1,7 @@ | ||
export const ENV0_API_URL = process.env.ENV0_API_URL || "api.env0.com"; | ||
export const ENV0_WEB_URL = process.env.ENV0_WEB_URL || "app.env0.com"; | ||
import * as vscode from "vscode"; | ||
|
||
export const ENV0_API_URL = | ||
vscode.workspace.getConfiguration("env0").get("apiUrl") || "api.env0.com"; | ||
export const ENV0_WEB_URL = | ||
vscode.workspace.getConfiguration("env0").get("webUrl") || "app.env0.com"; | ||
export const ENV0_ENVIRONMENTS_VIEW_ID = "env0-environments"; |
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