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