Skip to content

Commit

Permalink
Add proxy config to frontend and update .browserslistrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
cismael committed Mar 5, 2023
1 parent d9d6df7 commit 8eb7127
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/.angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "SpringBootAngularApp:build"
"browserTarget": "SpringBootAngularApp:build",
"proxyConfig": "src/proxy.conf.json"
},
"configurations": {
"production": {
Expand Down
9 changes: 7 additions & 2 deletions frontend/.browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed

> 0.5%
last 2 versions
last 5 versions
last 5 Chrome versions
last 5 Firefox version
last 2 Edge major versions
last 3 Safari major versions
last 3 iOS major versions
Firefox ESR
not dead
dead
# IE 9-11
7 changes: 7 additions & 0 deletions frontend/src/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"/api": {
"target": "http://localhost:8081",
"secure": false,
"logLevel": "debug"
}
}

0 comments on commit 8eb7127

Please sign in to comment.