@diagonal-hq/cli 0.41.8 → 0.42.0

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/README.md CHANGED
@@ -284,6 +284,7 @@ Omitted value choices follow the package release's defaults. Required mappings a
284
284
  - `diagonal check` writes `generated/domains.ts` from `domains`, with one entry for each key, such as `Domains.Portal = { key: 'portal' }`. The name is the key with an upper-case first letter. An entry holds no hostname. `Domains.Portal.key` has the literal type `'portal'`.
285
285
  - `domains` and `primaryDomain` come as a pair. `domains` without `primaryDomain` is an error at `domains`, and `primaryDomain` without `domains` is an error at `primaryDomain`. `primaryDomain` names a declared domain with `Domains.<Name>.key`. A string, such as `'website'`, fails with "Use Domains.<Name>.key from @app/generated/domains", and an unknown name, such as `Domains.Shop.key`, fails at its line.
286
286
  - A page names its domain with `domain: Domains.<Name>.key` in `definePage`. It serves only on the active hostname of that domain, and on no host while the domain has no active hostname, unless the domain has `fallback: 'primary'`. A page on the primary domain serves like a page without `domain`. The same string and unknown-name checks apply.
287
+ - A request trigger names its domain the same way. A request workflow on the primary domain answers only on the primary hostname while it is active, and on the assigned workspace host until then. A request workflow without `domain` follows the primary domain.
287
288
  - The `defineConfig` types apply the pair rules in the editor. The editor offers the keys of `domains` for `primaryDomain` and marks any other value, for example `Type '"webiste"' is not assignable to type '"website" | "portal" | undefined'`. The editor also marks one half of the pair without the other. `diagonal check` and the hosted build still check both rules, because a build does not run `tsc`.
288
289
  - An administrator connects one hostname to each key in Settings → Domains. The primary hostname is the live hostname of the primary key. Until it is live, the assigned workspace host is primary.
289
290
  - A deploy that changes `primaryDomain`, or renames or removes the primary key, moves the primary hostname when it activates, with no confirmation. The site and `/admin` on the old hostname stop answering, and the admin stays on the assigned workspace host. **Assign** binds the live hostname to the renamed key with no DNS step.