You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c12901b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(analog): use the Vite root for routes and build meta in Nx workspaces
The Routes tab, get-routes and the Dashboard SSR and Analog fields
resolved the Analog app from the working directory, so in an Nx
workspace with several Analog apps they described the first app under
apps/ instead of the one Vite serves. They now share the Vite root
with the Analog tab through servedAnalogRoot().
Copy file name to clipboardExpand all lines: apps/docs/src/content/inspectors/analog.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ Checks grouped by rule, each with a fix:
96
96
### Supported layouts
97
97
98
98
-**Single app**: `package.json`, `vite.config.ts` and `src/app/pages` in one folder. The build output is read from `dist/analog/public`.
99
-
-**Nx workspace**: the app lives in `apps/<name>` and `package.json` sits at the workspace root. The scan uses the Vite root, or the first folder under `apps/` whose `vite.config` calls `analog()` when the tools run from the workspace root. `package.json` is looked up from the app folder upward, and the build output is read from `dist/apps/<name>/analog/public`.
99
+
-**Nx workspace**: the app lives in `apps/<name>` and `package.json` sits at the workspace root. The scan uses the Vite root, or the first folder under `apps/` whose `vite.config` calls `analog()` when the tools run from the workspace root. The **Routes** tab, `get-routes` and the **SSR** and **Analog** fields on the **Dashboard** read the same app, so they match this tab. `package.json` is looked up from the app folder upward, and the build output is read from `dist/apps/<name>/analog/public`.
0 commit comments