@ts-cloud/core 0.7.62 → 0.7.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -22363,7 +22363,7 @@ function dashboardHostFor(domain, ownedDomains) {
22363
22363
  function collectDomains(config, environment) {
22364
22364
  const candidates = [];
22365
22365
  const dnsDomain = config.infrastructure?.dns?.domain;
22366
- if (dnsDomain)
22366
+ if (dnsDomain && !config.cloud?.attachTo)
22367
22367
  candidates.push(dnsDomain);
22368
22368
  if (environment && config.environments?.[environment]?.domain)
22369
22369
  candidates.push(config.environments[environment].domain);
@@ -22432,6 +22432,9 @@ function resolveManagementDashboardSites(config, environment, opts) {
22432
22432
  preStart: ["bun install --production --no-save"],
22433
22433
  start: `bun ${DASHBOARD_ENTRY} dashboard:serve --box --host 127.0.0.1 --port ${port}`,
22434
22434
  port,
22435
+ env: {
22436
+ TS_CLOUD_DASHBOARD_TELEMETRY: config.cloud?.attachTo ? "0" : "1"
22437
+ },
22435
22438
  zeroDowntime: false,
22436
22439
  sharedPaths: [DASHBOARD_STATE_DIR],
22437
22440
  healthCheck: { path: "/login" },
@@ -106,7 +106,7 @@ export declare function deriveManagementDashboardPort(dashboardHost: string): nu
106
106
  * then the environment domain), else the first site domain. Returns null when
107
107
  * nothing is available.
108
108
  */
109
- export declare function resolveDashboardDomain(config: Pick<CloudConfig, 'sites' | 'environments' | 'infrastructure'>, environment?: EnvironmentType, explicit?: string): string | null;
109
+ export declare function resolveDashboardDomain(config: Pick<CloudConfig, 'sites' | 'environments' | 'infrastructure' | 'cloud'>, environment?: EnvironmentType, explicit?: string): string | null;
110
110
  /**
111
111
  * Derive EVERY dashboard hostname the project should expose — one
112
112
  * `dashboard.<apex>` per distinct registrable apex across all configured
@@ -116,7 +116,7 @@ export declare function resolveDashboardDomain(config: Pick<CloudConfig, 'sites'
116
116
  * An `explicit` domain (e.g. `TS_CLOUD_UI_DOMAIN`) pins a single host and
117
117
  * suppresses the per-apex fan-out — an operator asking for one host gets one.
118
118
  */
119
- export declare function resolveDashboardDomains(config: Pick<CloudConfig, 'sites' | 'environments' | 'infrastructure'>, environment?: EnvironmentType, explicit?: string): string[];
119
+ export declare function resolveDashboardDomains(config: Pick<CloudConfig, 'sites' | 'environments' | 'infrastructure' | 'cloud'>, environment?: EnvironmentType, explicit?: string): string[];
120
120
  /** Does the config already define the management dashboard as a site? */
121
121
  export declare function hasManagementDashboardSite(config: Pick<CloudConfig, 'sites'>): boolean;
122
122
  /** Prefix under which every auto-injected dashboard is keyed. */
@@ -147,7 +147,7 @@ export declare function isManagementDashboardSiteName(name: string): boolean;
147
147
  * fanning it out per apex would collide. Per-apex dashboards are a static-model
148
148
  * feature (the default) — the same files served on each domain.
149
149
  */
150
- export declare function resolveManagementDashboardSites(config: Pick<CloudConfig, 'sites' | 'environments' | 'infrastructure'>, environment: EnvironmentType, opts: ManagementDashboardOptions): Array<{
150
+ export declare function resolveManagementDashboardSites(config: Pick<CloudConfig, 'sites' | 'environments' | 'infrastructure' | 'cloud'>, environment: EnvironmentType, opts: ManagementDashboardOptions): Array<{
151
151
  name: string;
152
152
  site: SiteConfig;
153
153
  }>;
@@ -157,7 +157,7 @@ export declare function resolveManagementDashboardSites(config: Pick<CloudConfig
157
157
  * configured. Thin wrapper over {@link resolveManagementDashboardSites} kept for
158
158
  * callers that only want the single primary host.
159
159
  */
160
- export declare function resolveManagementDashboardSite(config: Pick<CloudConfig, 'sites' | 'environments' | 'infrastructure'>, environment: EnvironmentType, opts: ManagementDashboardOptions): {
160
+ export declare function resolveManagementDashboardSite(config: Pick<CloudConfig, 'sites' | 'environments' | 'infrastructure' | 'cloud'>, environment: EnvironmentType, opts: ManagementDashboardOptions): {
161
161
  name: string;
162
162
  site: SiteConfig;
163
163
  } | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ts-cloud/core",
3
3
  "type": "module",
4
- "version": "0.7.62",
4
+ "version": "0.7.64",
5
5
  "description": "Core CloudFormation generation library for ts-cloud",
6
6
  "author": "Chris Breuer <chris@stacksjs.com>",
7
7
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "typecheck": "tsc --noEmit"
32
32
  },
33
33
  "dependencies": {
34
- "@ts-cloud/aws-types": "0.7.62"
34
+ "@ts-cloud/aws-types": "0.7.64"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^7.0.2"