Skip to content

Commit d9e05f9

Browse files
feat(cloud-connection,app-shell): Open on Cloud opens the runtime's declared cloudHomeUrl (#34945)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBNgJrQDxaUNx2so1ektgf6A)_ Part of #34622 Clause-②: yes (widening) Metadata-protocol: none repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa ## 维护者速读 - **改了什么**:`RuntimeConfigPlugin` 新增宿主选项 `cloudHomeUrl`(控制面控制台首页的绝对地址),声明后在 `/api/v1/runtime/config` 顶层原样下发;控制台读取它,市场安装对话框里的「Open on Cloud」在声明时直接打开该地址。 - **为什么改**:「Open on Cloud」原来打开 Cloud 根域名,单组织管理员访问根域名会被送回环境;控制台首页的地址只有部署控制面的一方知道,所以由宿主声明(与 `upgradeUrl` 同一形状,裁决 cloud#1850 A)。 - **风险与回滚**:低。未声明时不下发该键,链接目标与显示/隐藏规则与改动前逐字节相同;相对地址或非 http(s) 值在挂载时被拒绝并记录告警。回滚即 revert 本 PR。 - **先看**:`packages/cloud-connection/src/runtime-config-plugin.ts`(构造函数的接受/拒绝与下发处的 spread)、`ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx`(「Open on Cloud」一处)、`ui/packages/app-shell/src/runtime-config.ts`(`cloudHomeUrl` 读取与 `getCloudHomeUrl()`)。 - **两分钟验证**:`pnpm --dir ui exec vitest run -t cloudHomeUrl packages/app-shell/src/runtime-config.test.ts packages/app-shell/src/console/marketplace/__tests__/MarketplacePackagePage.openOnCloud-34622.test.tsx`,预期 12 passed。 - **需要你做的**:无,席位落地。 ## What changes - **Server, `@objectstack/cloud-connection`.** `RuntimeConfigPluginConfig.cloudHomeUrl?: string` is the absolute URL of the control plane's console home page. It follows the `upgradeUrl` contract. It is a host option only, with no env var, because the cloud distribution fills it as it fills `upgradeUrl`. By default it is absent: no key is served, never `''` or a guessed default, and an empty or whitespace-only value reads as unset. A value that is not an absolute http(s) URL, checked with the existing `isAbsoluteHttpUrl`, is refused, and `start()` names the option and the refused value in one `warn`, in the same shape as the `upgradeUrl` refusal. An accepted value is served verbatim as a top-level `cloudHomeUrl` beside `cloudUrl` and `upgradeUrl`. The change adds a docblock in the `upgradeUrl` style, a line in the header response-shape comment, and one table row in the package README. - **Console, `@object-ui/app-shell`.** `runtime-config.ts` reads the served `cloudHomeUrl` verbatim, the same way it reads `upgradeUrl`: absent, empty, whitespace-only and non-string values stay absent, and each payload re-derives the key. It exposes `getCloudHomeUrl()`. The install dialog's "Open on Cloud" link opens `getCloudHomeUrl() ?? cloudConsoleUrl()`. With the key absent, the link's target and its show/hide rule are unchanged. - One patch changeset per package. Each declares `Clause-②: yes (widening)` and `Metadata-protocol: none`, so the level is `patch` (AGENTS.md Post-Task Checklist step 3: a kind of `none` takes `patch`). - The payload is not a `packages/spec` type, so nothing under `packages/spec` changes. **Cloud-repo follow-up (not filed here):** the cloud distribution's `RuntimeConfigPlugin` subclass should declare `cloudHomeUrl`, the console home page of its control plane, beside the `upgradeUrl` it already fills. Until it does, the link keeps opening the Cloud origin. Out of scope: item 4 of the card (the avatar menu's organization entries, #34591), and every other `cloudConsoleUrl()` caller. ## Tests Measured at head `66f36501` (the merge of `origin/main` `d576509c` onto `c24f0407`; the incoming commits touch none of these packages). Dependency closures built first: `pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection...' build` (VERDICT command-exit 0) and `pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build` (VERDICT command-exit 0). - Server pins: a new top-level `describe` in `runtime-config-upgrade-url.test.ts`, which reuses that file's `serve` harness. It covers declared (served verbatim beside `cloudUrl` and `upgradeUrl`, with no warning), absent (no key, nothing derived from `cloudUrl` or `upgradeUrl`), empty and whitespace (absent and silent), and five refused values (relative, bare host, `javascript:`, `ftp:`), each named in the mount warning. A refused value leaves a declared `upgradeUrl` and the rest of the payload untouched. - `@objectstack/cloud-connection`: full suite, Test Files 90 passed (90), Tests 1324 passed (1324). `typecheck` exit 0. - Console pins: a top-level `describe` in the shared `runtime-config.test.ts` (8 tests), and a new card-named `MarketplacePackagePage.openOnCloud-34622.test.tsx` (4 tests). The second is a new file because no MarketplacePackagePage test exercised this link and the page has no single shared harness file: each existing suite is card-named with its own mocks. It covers declared (opens `cloudHomeUrl`, not the origin), declared on an empty `cloudUrl` (drawn), CONTROL absent (opens the origin), and CONTROL absent on an empty `cloudUrl` (not drawn). `cloudConsoleUrl` is the real implementation. - `packages/app-shell/src/console/marketplace/` plus `runtime-config*`: Test Files 63 passed (63), Tests 667 passed (667). `pnpm --filter @object-ui/app-shell run type-check` exit 0, both tsc projects. - ESLint on the four changed ui files, run as the package's `lint` (`eslint`): 0 errors. The 21 warnings are all pre-existing `no-explicit-any` lines. <details><summary>Ablations (scripts/ablation-replace.mjs; tests import src by relative path, so no dist leg)</summary> Server: the served spread for `cloudHomeUrl` was replaced with an empty spread. The two declared pins went red, and the absent, empty and refused pins stayed green, which is the expected direction. ``` ablation-replace: ok mutation landed: anchor 1 -> 0, blob e83d021 -> 196547df526e Tests 2 failed | 31 passed (33) ablation-replace: ok restored: blob == HEAD (e83d021) and `git diff HEAD` is empty ``` Console: the read `? body.cloudHomeUrl` was replaced with `? undefined`. The two declared reader pins and the two declared page pins went red, and every absent/CONTROL pin stayed green. ``` ablation-replace: ok mutation landed: anchor 1 -> 0, blob 39f579c -> 1d24a496bdc0 Tests 4 failed | 8 passed | 68 skipped (80) ablation-replace: ok restored: blob == HEAD (39f579c) and `git diff HEAD` is empty ``` </details> ## Acceptance notes - File surface beyond the claim: one table row and one sentence in `packages/cloud-connection/README.md`, which documents the runtime-config keys beside `upgradeUrl`. - With `cloudHomeUrl` declared on a runtime whose `cloudUrl` is empty, the link is now drawn and opens the declared address. This matches the `upgradeUrl` slice: when the key is present, the console renders the link. ## Verification - `node scripts/pm/dispatch-gates.mjs --commands` at `66f36501`: 72 derived families. 71 ran with exit 0. `pnpm check:dual-build-cjs-loads` exited 3 with PREREQUISITE NOT MET because it reads every package's built `dist/` and this tree has no full build, so it is NOT MEASURED locally and CI runs it. The `--ran` reconciliation reported 72 derived, 71 run, 1 NOT-MEASURED, 0 UNRUN. - `pnpm --dir ui check:new-line-citations`: 0 new citations, exit 0. - `node scripts/pm/overlap-check.mjs --branch=claude/issue-34622-cloud-home-url` before both pushes: VERDICT clean, exit 0, merging cleanly with `origin/main`. - CI check-runs: not yet concluded when this body was written. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9cf74ae commit d9e05f9

9 files changed

Lines changed: 406 additions & 7 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
feat(app-shell): the marketplace "Open on Cloud" link opens the runtime's declared `cloudHomeUrl`
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
The Console reads the top-level `cloudHomeUrl` from `GET /api/v1/runtime/config` as served (an absent, empty or non-string value stays absent; nothing is composed in its place) and exposes it as `getCloudHomeUrl()`. The install dialog's "Open on Cloud" link, shown when the caller's cloud environments cannot be listed, opens it when it is declared.
11+
12+
When the runtime declares no `cloudHomeUrl`, the link behaves as before: it opens `cloudConsoleUrl()`, and it is not drawn on a runtime that names no upstream cloud.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/cloud-connection': patch
3+
---
4+
5+
feat(cloud-connection): `RuntimeConfigPlugin` serves a declared `cloudHomeUrl`
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
`RuntimeConfigPluginConfig` takes a new optional `cloudHomeUrl`: the absolute URL of the control plane's console home page. When a host declares it, `GET /api/v1/runtime/config` serves it verbatim as a top-level `cloudHomeUrl`, beside `cloudUrl` and `upgradeUrl`. It follows the `upgradeUrl` contract:
11+
12+
- Host option only. There is no env var: the distribution whose control plane serves the page fills it.
13+
- Absent by default. An unset, empty or whitespace-only value serves no key at all, never `""` or a guessed default.
14+
- Absolute or refused. A relative path or a non-`http(s)` scheme is not served, and the mount log names the option and the refused value.
15+
16+
Nothing changes for a host that does not declare it.

‎packages/cloud-connection/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ the **absolute** URL of the control plane's upgrade / billing page — beside th
139139
| Key | Type | Default | Meaning |
140140
|---|---|---|---|
141141
| `upgradeUrl` | absolute `http(s)` URL | **absent** | Where the Console sends a user who chooses "upgrade" (AI quota exhausted, plan limit hit). Declared by the host that owns the page and served verbatim; no key means "render no link". |
142+
| `cloudHomeUrl` | absolute `http(s)` URL | **absent** | The control plane's console home page, opened by the marketplace's "Open on Cloud" link. Same contract as `upgradeUrl`: host option only, served verbatim, refused at mount when not absolute; no key means the link keeps its `cloudUrl` target. |
142143

143144
```json
144145
{
@@ -159,7 +160,8 @@ Why it is published rather than composed by the Console: the destination
159160
depends on the console mount, the app slug and the page route — three facts
160161
owned by whoever deploys the control plane — and a consumer in another repo
161162
that guessed them landed on the control plane's API 404. Three properties,
162-
pinned by `runtime-config-upgrade-url.test.ts`:
163+
pinned by `runtime-config-upgrade-url.test.ts` (which pins `cloudHomeUrl` to
164+
the same three):
163165

164166
- **Absent by default.** A vanilla `objectstack dev`, a self-hosted box and an
165167
air-gapped deployment have no billing page. They serve no `upgradeUrl` key at

‎packages/cloud-connection/src/runtime-config-plugin.ts‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* {
1414
* cloudUrl: string, // base URL of the upstream cloud ('' = same origin)
1515
* upgradeUrl?: string, // absolute URL of the control plane's upgrade / billing entry — absent unless declared (#14514)
16+
* cloudHomeUrl?: string, // absolute URL of the control plane's console home page — absent unless declared (#34622)
1617
* mapStyleUrl?: string, // the deployment's default map style (OS_CONSOLE_MAP_STYLE_URL) — absent unless set (#26001)
1718
* singleEnvironment: boolean,
1819
* defaultOrgId?, defaultEnvironmentId?, // multi-tenant, per-hostname
@@ -726,6 +727,35 @@ export interface RuntimeConfigPluginConfig {
726727
* whose control plane serves the page; the cloud subclass fills it.
727728
*/
728729
upgradeUrl?: string;
730+
/**
731+
* Absolute URL of the control plane's console home page, served verbatim
732+
* as the top-level `cloudHomeUrl` key beside `cloudUrl` and `upgradeUrl`
733+
* (#34622).
734+
*
735+
* The tenant Console's marketplace offers an "Open on Cloud" exit when it
736+
* cannot list the caller's cloud environments. Without this key it opens
737+
* `cloudUrl` itself — the control plane's origin, whose landing may route
738+
* a signed-in user straight back into the environment they came from. The
739+
* page that IS the control plane's console home belongs to whoever deploys
740+
* it, so it is declared here by that host, exactly as `upgradeUrl` is
741+
* (maintainer ruling cloud#1850, option A's shape), and the Console opens
742+
* it when the key is present.
743+
*
744+
* ⛔ Default **absent**: unset serves no `cloudHomeUrl` key at all, never an
745+
* empty string or a guessed default. A vanilla `objectstack dev`, a
746+
* self-hosted box and an air-gapped deployment have no control-plane
747+
* console, and the Console reads "no key" as "keep today's link".
748+
* Empty / whitespace-only reads as unset (absent, silent).
749+
*
750+
* ⛔ Must be ABSOLUTE (`http:` / `https:`). A relative path such as
751+
* `/_console` is refused and named at mount time, never forwarded: the
752+
* Console opens this URL from the TENANT origin, where a relative path
753+
* would resolve against the tenant runtime instead of the control plane.
754+
*
755+
* Host option only — no env var. The value belongs to the distribution
756+
* whose control plane serves the page; the cloud subclass fills it.
757+
*/
758+
cloudHomeUrl?: string;
729759
/**
730760
* CEILING for the `features.installLocal` flag — no longer its source
731761
* (#8388).
@@ -895,6 +925,10 @@ export class RuntimeConfigPlugin implements Plugin {
895925
private readonly upgradeUrl: string | undefined;
896926
/** The refused spelling, kept so `start()` can name it once — same reason as `refusedStage`. */
897927
private readonly refusedUpgradeUrl: string | undefined;
928+
/** The declared console home page, or `undefined` for "send no key" (unset or refused). */
929+
private readonly cloudHomeUrl: string | undefined;
930+
/** The refused spelling, kept so `start()` can name it once — same reason as `refusedStage`. */
931+
private readonly refusedCloudHomeUrl: string | undefined;
898932
/**
899933
* The deployment's default map style (`OS_CONSOLE_MAP_STYLE_URL`), or
900934
* `undefined` for "send no key". Read in `start()`, which refuses a bad
@@ -966,6 +1000,19 @@ export class RuntimeConfigPlugin implements Plugin {
9661000
this.refusedUpgradeUrl = requestedUpgradeUrl !== undefined && this.upgradeUrl === undefined
9671001
? requestedUpgradeUrl
9681002
: undefined;
1003+
// Control-plane console home page (#34622): the same contract as
1004+
// `upgradeUrl` above — empty reads as unset, a value that is not an
1005+
// absolute http(s) URL is refused and named at mount, an accepted one
1006+
// is kept verbatim.
1007+
const requestedCloudHomeUrl = typeof config.cloudHomeUrl === 'string' && config.cloudHomeUrl.trim() !== ''
1008+
? config.cloudHomeUrl
1009+
: undefined;
1010+
this.cloudHomeUrl = requestedCloudHomeUrl !== undefined && isAbsoluteHttpUrl(requestedCloudHomeUrl)
1011+
? requestedCloudHomeUrl
1012+
: undefined;
1013+
this.refusedCloudHomeUrl = requestedCloudHomeUrl !== undefined && this.cloudHomeUrl === undefined
1014+
? requestedCloudHomeUrl
1015+
: undefined;
9691016
const envLogoUrl = (typeof process !== 'undefined' ? process.env?.OS_LOGO_URL : undefined)?.trim();
9701017
const envFaviconUrl = (typeof process !== 'undefined' ? process.env?.OS_FAVICON_URL : undefined)?.trim();
9711018
const envBrandColor = (typeof process !== 'undefined' ? process.env?.OS_BRAND_COLOR : undefined)?.trim();
@@ -1073,6 +1120,17 @@ export class RuntimeConfigPlugin implements Plugin {
10731120
);
10741121
}
10751122

1123+
// The same refusal for the control plane's console home page
1124+
// (#34622): declared, refused rather than coerced, and named once.
1125+
if (this.refusedCloudHomeUrl !== undefined) {
1126+
ctx.logger?.warn?.(
1127+
`[RuntimeConfigPlugin] ignoring cloudHomeUrl ${JSON.stringify(this.refusedCloudHomeUrl)} `
1128+
+ `(the \`cloudHomeUrl\` option): it must be an absolute http(s) URL — the Console opens it `
1129+
+ `from the tenant origin, so a relative path would resolve against the wrong host. `
1130+
+ `No cloudHomeUrl key is served and the Console's "Open on Cloud" link keeps its default target.`,
1131+
);
1132+
}
1133+
10761134
// Telemetry knobs the operator got wrong (#12681). Same shape and
10771135
// same reason as the stage refusal above: they meant to CONFIGURE
10781136
// something, the value was not understood, and it was refused
@@ -1204,6 +1262,9 @@ export class RuntimeConfigPlugin implements Plugin {
12041262
// link", so a present-and-undefined property must never
12051263
// reach a non-JSON consumer or a test.
12061264
...(this.upgradeUrl !== undefined ? { upgradeUrl: this.upgradeUrl } : {}),
1265+
// Declared by the host, never derived (#34622); spread for
1266+
// the same key-presence reason.
1267+
...(this.cloudHomeUrl !== undefined ? { cloudHomeUrl: this.cloudHomeUrl } : {}),
12071268
// The operator's default map style (#26001); spread for
12081269
// the same key-presence reason.
12091270
...(this.mapStyleUrl !== undefined ? { mapStyleUrl: this.mapStyleUrl } : {}),

‎packages/cloud-connection/src/runtime-config-upgrade-url.test.ts‎

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* ABSOLUTE http(s) URL. A relative path is the defect this key exists to remove
2020
* (opened from the tenant origin it resolves against the wrong host), so it is
2121
* refused and named at mount, never forwarded.
22+
*
23+
* The last top-level group pins `cloudHomeUrl` (#34622), the control plane's
24+
* console home page, which the producer holds to the same contract.
2225
*/
2326

2427
import { describe, it, expect } from 'vitest';
@@ -197,3 +200,71 @@ describe('RuntimeConfigPlugin — upgradeUrl (#14514)', () => {
197200
});
198201
});
199202
});
203+
204+
/** The second declared control-plane address: the console home page (#34622). */
205+
function hasCloudHomeUrlKey(body: any): boolean {
206+
return Object.prototype.hasOwnProperty.call(body, 'cloudHomeUrl');
207+
}
208+
209+
/** The shape the cloud distribution will declare — the control plane's console mount. */
210+
const CLOUD_HOME = 'https://cloud.example.com/_console/';
211+
212+
describe('RuntimeConfigPlugin — cloudHomeUrl (#34622), the same contract as upgradeUrl', () => {
213+
it('declared: served verbatim at the top level beside cloudUrl and upgradeUrl, silently', async () => {
214+
const { body, warnings } = await serve({
215+
controlPlaneUrl: 'https://cloud.example.com',
216+
upgradeUrl: PRICING,
217+
cloudHomeUrl: CLOUD_HOME,
218+
});
219+
expect(hasCloudHomeUrlKey(body)).toBe(true);
220+
expect(body.cloudHomeUrl).toBe(CLOUD_HOME);
221+
expect(body.cloudUrl).toBe('https://cloud.example.com');
222+
expect(body.upgradeUrl).toBe(PRICING);
223+
expect(Object.keys(body.features)).not.toContain('cloudHomeUrl');
224+
expect(Object.keys(body.branding)).not.toContain('cloudHomeUrl');
225+
expect(JSON.parse(JSON.stringify(body)).cloudHomeUrl).toBe(CLOUD_HOME);
226+
expect(warnings).toEqual([]);
227+
});
228+
229+
it('declared: verbatim — no trailing-slash trimming, no case folding, no re-serialisation', async () => {
230+
const spelled = 'http://Cloud.Example.com:8443/_console/?from=marketplace#home';
231+
const { body } = await serve({ cloudHomeUrl: spelled });
232+
expect(body.cloudHomeUrl).toBe(spelled);
233+
});
234+
235+
it('absent: no key at all when nothing declared it, and nothing derived from cloudUrl or upgradeUrl', async () => {
236+
const { body, warnings } = await serve({ controlPlaneUrl: 'https://cloud.example.com', upgradeUrl: PRICING });
237+
expect(hasCloudHomeUrlKey(body)).toBe(false);
238+
expect(Object.prototype.hasOwnProperty.call(JSON.parse(JSON.stringify(body)), 'cloudHomeUrl')).toBe(false);
239+
expect(warnings).toEqual([]);
240+
});
241+
242+
it.each(['', ' '])('empty: a declaration of %j reads as unset — absent, and silent', async (value) => {
243+
const { body, warnings } = await serve({ cloudHomeUrl: value });
244+
expect(hasCloudHomeUrlKey(body)).toBe(false);
245+
expect(warnings).toEqual([]);
246+
});
247+
248+
it.each([
249+
'/_console',
250+
'_console/',
251+
'cloud.example.com/_console',
252+
'javascript:alert(1)',
253+
'ftp://cloud.example.com/_console',
254+
])('refused: %j is not served, and the mount names the option and the value', async (value) => {
255+
const { body, warnings } = await serve({ cloudHomeUrl: value });
256+
expect(hasCloudHomeUrlKey(body)).toBe(false);
257+
const warning = warnings.find((w) => w.includes('cloudHomeUrl'));
258+
expect(warning).toBeDefined();
259+
expect(warning).toContain(JSON.stringify(value));
260+
expect(warning).toContain('absolute');
261+
});
262+
263+
it('a refused cloudHomeUrl leaves a declared upgradeUrl and the rest of the payload untouched', async () => {
264+
const { body, warnings } = await serve({ upgradeUrl: PRICING, cloudHomeUrl: '/_console' });
265+
expect(body.upgradeUrl).toBe(PRICING);
266+
expect(body.cloudUrl).toBe('');
267+
expect(body.features.aiStudio).toBe(true);
268+
expect(warnings.some((w) => w.includes('upgradeUrl'))).toBe(false);
269+
});
270+
});

‎ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import {
110110
takeClearConfirmRequest,
111111
} from './sampleDataNotice.js';
112112
import { SampleDataLeaveBanner } from './SampleDataLeaveBanner.js';
113-
import { getCloudBase, getRuntimeConfig, isMarketplaceEnabled } from '../../runtime-config.js';
113+
import { getCloudBase, getCloudHomeUrl, getRuntimeConfig, isMarketplaceEnabled } from '../../runtime-config.js';
114114
import { emitMetadataRefresh } from '../../assistant/assistantBus.js';
115115
import { useMetadata } from '../../providers/MetadataProvider.js';
116116
import { appRouteSegment, filterActiveApps } from '../../utils/index.js';
@@ -1982,11 +1982,13 @@ function MarketplacePackagePageBody() {
19821982
<AlertCircle className="h-4 w-4 mt-0.5 text-amber-600" aria-hidden="true" />
19831983
<div className="flex-1">{envsError}</div>
19841984
</div>
1985-
{/* Only when the runtime named an upstream cloud. An empty base
1986-
used to fall back to a composed vendor URL that 404'd
1985+
{/* The control plane's declared console home page when the
1986+
runtime serves one (objectstack#34622), else the upstream
1987+
cloud's origin, and only when the runtime named one. An empty
1988+
base used to fall back to a composed vendor URL that 404'd
19871989
(objectui#7253); an `href=""` would reload this page. */}
1988-
{cloudConsoleUrl() ? (
1989-
<a href={cloudConsoleUrl()} target="_blank" rel="noopener noreferrer">
1990+
{(getCloudHomeUrl() ?? cloudConsoleUrl()) ? (
1991+
<a href={getCloudHomeUrl() ?? cloudConsoleUrl()} target="_blank" rel="noopener noreferrer">
19901992
<Button variant="outline" size="sm" className="w-full">
19911993
<ExternalLink className="h-4 w-4 mr-1.5" aria-hidden="true" />
19921994
{t('marketplace.action.openOnCloud')}

0 commit comments

Comments
 (0)