Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 10aa96c

Browse files
Allow cloud API to be set via runtime variables (#76)
1 parent 97c09a7 commit 10aa96c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@cloudquery/plugin-config-ui-lib",
33
"description": "Plugin configuration UI library for CloudQuery Cloud App",
4-
"version": "5.0.0",
4+
"version": "5.0.1",
55
"private": false,
66
"main": "dist/index.cjs.js",
77
"module": "dist/index.esm.js",

src/utils/constants.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@
44
* @public
55
*/
66
export const cloudQueryApiBaseUrl =
7-
process.env.REACT_APP_CLOUDQUERY_API_BASE_URL || 'https://api.cloudquery.io';
7+
(typeof window !== 'undefined' && (window as any).REACT_APP_CLOUDQUERY_API_BASE_URL) ||
8+
process.env.REACT_APP_CLOUDQUERY_API_BASE_URL ||
9+
'https://api.cloudquery.io';
810

911
/**
1012
* CloudQuery OAuth Connector URL
1113
*
1214
* @public
1315
*/
1416
export const cloudQueryOauthConnectorUrl =
17+
(typeof window !== 'undefined' && (window as any).REACT_APP_CLOUDQUERY_OAUTH_CONNECTOR_URL) ||
1518
process.env.REACT_APP_CLOUDQUERY_OAUTH_CONNECTOR_URL ||
1619
'https://cloud.cloudquery.io/auth/connector';
1720

0 commit comments

Comments
 (0)