@diagonal-hq/cli 0.39.1 → 0.39.2

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
@@ -257,6 +257,7 @@ export default defineConfig({
257
257
  - The deploy checks each value again with the rules of the workspace field. A value that fails, such as a timezone that the server does not know, stops the deploy, and the workspace keeps its values. The deploy checks an error page setting against the pages of the build instead, because a file page has no page row.
258
258
  - A rollback writes the config of the older deployment. A deployment built before the deploy wrote the config writes nothing.
259
259
  - `domains` declares the domains of the workspace, and `primaryDomain` names the one that is primary. See [Domains](#domains).
260
+ - `defaultMenu` names the default menu as `Menus.<Name>.uid` from `@app/generated/navigation`, such as `defaultMenu: Menus.Main.uid` for `navigation/main.ts`. The name is the studly case of the file name, so `navigation/front-desk-team.ts` is `Menus.FrontDeskTeam`. `diagonal check` writes `generated/navigation.ts`, which exports `Menus` and exports the default menu as `defaultMenu`, or an empty menu without `defaultMenu`. A layout that imports `defaultMenu` from `@app/generated/navigation` and passes it to `useMenu` shows the default menu. A sign-in without a login redirect lands on the first page of the default menu that the visitor can open. The check refuses an unknown name, a value that is not a uid, and a uid that no menu file exports. **Set as Default Menu** on the Navigation settings page commits this option and deploys it.
260
261
 
261
262
  ### Domains
262
263