proxy configuration

This commit is contained in:
2023-04-28 13:46:44 +02:00
parent 1222172e1c
commit 4ccd2fa70a
2 changed files with 9 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve --proxy-config proxy.conf.json",
"build": "ng build", "build": "ng build",
"watch": "ng build --watch --configuration development", "watch": "ng build --watch --configuration development",
"test": "ng test" "test": "ng test"

8
proxy.conf.json Normal file
View File

@@ -0,0 +1,8 @@
{
"/progetto152/*": {
"target": "http://localhost:8080",
"secure": false,
"logLevel": "debug",
"changeOrigin": true
}
}