From 17e66538b0d554e3de81662ce66bee2b617477cf Mon Sep 17 00:00:00 2001 From: erKam Date: Thu, 5 Nov 2026 10:24:32 +0000 Subject: [PATCH] docs: show proxy.conf.json in the client-only setup steps The "Add the proxy config" step said "Save the proxy.conf.json above", but the file was only in the last tab of the server-part code group, behind the Express tab and in another section. The steps now point to a copy of it right below them, next to the angular.json excerpt. Fixes #446 --- .../src/content/getting-started/installation.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/docs/src/content/getting-started/installation.md b/apps/docs/src/content/getting-started/installation.md index 39e10ec7..34866159 100644 --- a/apps/docs/src/content/getting-started/installation.md +++ b/apps/docs/src/content/getting-started/installation.md @@ -240,7 +240,7 @@ An app created with `ng new --ssr=false` only runs `ng serve`. Run the standalon Run npx pangular dev --port 9999 --proxy-origin http://localhost:4200 from the root of your workspace. It serves the panel, the connection and the WebSocket at the root of port 9999. --proxy-origin names the origin of ng serve, so the CLI prints its links for http://localhost:4200/__pangular/. - Save the proxy.conf.json above next to angular.json. It strips the /__pangular prefix, and "ws": true forwards the WebSocket the overlay and the panel connect over. + Save the proxy.conf.json below next to angular.json. It strips the /__pangular prefix, and "ws": true forwards the WebSocket the overlay and the panel connect over. Set proxyConfig in the serve options of angular.json, or run ng serve --proxy-config proxy.conf.json. @@ -253,6 +253,18 @@ An app created with `ng new --ssr=false` only runs `ng serve`. Run the standalon +Save this as `proxy.conf.json` next to `angular.json`: + +```json +{ + "/__pangular": { + "target": "http://localhost:9999", + "pathRewrite": {"^/__pangular": ""}, + "ws": true + } +} +``` + Point the dev server at the proxy file in `angular.json` (excerpt): ```json