@ts-cloud/core 0.7.2 → 0.7.4

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.
@@ -38,6 +38,13 @@ export interface FindComputeTargetsOptions {
38
38
  slug: string;
39
39
  environment: EnvironmentType;
40
40
  role?: string;
41
+ /**
42
+ * Project stack name (`resolveProjectStackName(config, environment)`), used
43
+ * by drivers that can pin targets from local state when label/tag scans
44
+ * don't match — e.g. a project riding a shared box whose labels belong to
45
+ * another project. Defaults to `<slug>-<environment>` when omitted.
46
+ */
47
+ stackName?: string;
41
48
  }
42
49
  export interface UploadReleaseOptions {
43
50
  config: CloudConfig;
package/dist/types.d.ts CHANGED
@@ -2556,6 +2556,19 @@ export interface ComputeProxyConfig {
2556
2556
  * single-upstream route (rpx only load-balances a route with >1 upstream).
2557
2557
  */
2558
2558
  loadBalancer?: RpxLoadBalancerConfig;
2559
+ /**
2560
+ * Auto-add a `www.<domain>` → `https://<domain>` redirect route for every
2561
+ * apex domain (a bare `example.com`, not `sub.example.com` or an existing
2562
+ * `www.example.com`) routed by this gateway — matching how the AWS/
2563
+ * CloudFront path already aliases apex + www (see `migrate-site-stack.ts`'s
2564
+ * `isApex`/`wwwDomain` handling). DNS reconciliation already creates both
2565
+ * the apex and `www` A records (see `reconcileHetznerDns`), so without
2566
+ * this the gateway only ever routes the apex and `www.<domain>` 404s even
2567
+ * though DNS resolves it to the same box. Set `false` to opt out (e.g. a
2568
+ * multi-tenant custom-domain deploy where `www.<domain>` might belong to
2569
+ * someone else). @default true
2570
+ */
2571
+ autoWww?: boolean;
2559
2572
  }
2560
2573
  /**
2561
2574
  * Mirrors rpx's own `LoadBalancerConfig` (see `@stacksjs/rpx`'s `types.ts`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-cloud/core",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "type": "module",
5
5
  "description": "Core CloudFormation generation library for ts-cloud",
6
6
  "author": "Chris Breuer <chris@stacksjs.com>",
@@ -31,7 +31,7 @@
31
31
  "typecheck": "tsc --noEmit"
32
32
  },
33
33
  "dependencies": {
34
- "@ts-cloud/aws-types": "0.7.2"
34
+ "@ts-cloud/aws-types": "0.7.4"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^5.9.3"