Skip to content

Commit

Permalink
add api proxy back
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Jun 14, 2024
1 parent 42f15b6 commit 62b626f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"proxyConfig": "src/proxy.conf.json",
"buildTarget": "edi-translator:build"
},
"configurations": {
"production": {
"buildTarget": "edi-translator:build:production"
Expand Down
7 changes: 7 additions & 0 deletions web/src/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"/api": {
"target": "https://localhost:7103/",
"secure": false,
"changeOrigin": true
}
}

0 comments on commit 62b626f

Please sign in to comment.