Skip to content

Commit e5337e2

Browse files
committed
docs(guide): add proxying to Angular app
1 parent b091b00 commit e5337e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/guide.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- [Stripping `/proxy/<port>` from the request path](#stripping-proxyport-from-the-request-path)
1717
- [Proxying to create a React app](#proxying-to-create-a-react-app)
1818
- [Proxying to a Vue app](#proxying-to-a-vue-app)
19+
- [Proxying to an Angular app](#proxying-to-an-angular-app)
1920
- [SSH into code-server on VS Code](#ssh-into-code-server-on-vs-code)
2021
- [Option 1: cloudflared tunnel](#option-1-cloudflared-tunnel)
2122
- [Option 2: ngrok tunnel](#option-2-ngrok-tunnel)
@@ -382,6 +383,14 @@ module.exports = {
382383

383384
Read more about `publicPath` in the [Vue.js docs](https://cli.vuejs.org/config/#publicpath)
384385

386+
### Proxying to an Angular app
387+
388+
In order to use code-server's built-in proxy with Angular, you need to make the following changes in your app:
389+
1. use `<base href="./.">` in `src/index.html`
390+
2. add `--serve-path /absproxy/4200` to `ng serve` in your `package.json`
391+
392+
For additional context, see [this GitHub Discussion](https://github.com/coder/code-server/discussions/5439#discussioncomment-3371983).
393+
385394
## SSH into code-server on VS Code
386395

387396
[![SSH](https://img.shields.io/badge/SSH-363636?style=for-the-badge&logo=GNU+Bash&logoColor=ffffff)](https://ohmyz.sh/) [![Terminal](https://img.shields.io/badge/Terminal-2E2E2E?style=for-the-badge&logo=Windows+Terminal&logoColor=ffffff)](https://img.shields.io/badge/Terminal-2E2E2E?style=for-the-badge&logo=Windows+Terminal&logoColor=ffffff) [![Visual Studio Code](https://img.shields.io/badge/Visual_Studio_Code-007ACC?style=for-the-badge&logo=Visual+Studio+Code&logoColor=ffffff)](vscode:extension/ms-vscode-remote.remote-ssh)

0 commit comments

Comments
 (0)