Skip to content

Commit 5f2f15a

Browse files
feat: add devcontainer configuration and proxy setup for API requests (#1473)
Co-authored-by: Andrew K <[email protected]>
1 parent 7ea20e6 commit 5f2f15a

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+
{
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm"
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
10+
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
// "forwardPorts": [],
13+
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
// "postCreateCommand": "yarn install",
16+
17+
// Configure tool-specific properties.
18+
// "customizations": {},
19+
20+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
21+
// "remoteUser": "root"
22+
}

frontend/angular.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@
136136
"serve": {
137137
"builder": "@angular-devkit/build-angular:dev-server",
138138
"options": {
139-
"buildTarget": "dissendium-v0:build"
139+
"buildTarget": "dissendium-v0:build",
140+
"host": "127.0.0.1",
141+
"proxyConfig": "src/proxy.conf.json"
140142
},
141143
"configurations": {
142144
"production": {

frontend/src/proxy.conf.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"/api/**": {
3+
"target": "https://app.rocketadmin.com/api/",
4+
"secure": false
5+
}
6+
}

0 commit comments

Comments
 (0)