fix(deploy): proxy and local develompent
All checks were successful
Build, Test and Deploy / test-backend (push) Successful in 23s
Build, Test and Deploy / build-and-push (push) Successful in 22s
Build, Test and Deploy / deploy (push) Successful in 5s

This commit is contained in:
2026-02-05 15:55:12 +01:00
parent 41aa474cbb
commit 0dbcb182b3
5 changed files with 14 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ services:
image: ${REGISTRY_URL}/${REPO_OWNER}/print-calculator-frontend:${TAG}
container_name: print-calculator-frontend-${ENV}
ports:
- "${FRONTEND_PORT}:8008"
- "${FRONTEND_PORT}:80"
depends_on:
- backend
restart: unless-stopped

View File

@@ -83,6 +83,9 @@
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"proxyConfig": "proxy.conf.json"
},
"configurations": {
"production": {
"buildTarget": "frontend:build:production"

8
frontend/proxy.conf.json Normal file
View File

@@ -0,0 +1,8 @@
{
"/api": {
"target": "http://backend:8000",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}

View File

@@ -1,5 +1,5 @@
export const environment = {
production: false,
apiUrl: 'http://localhost:8000',
apiUrl: '',
basicAuth: ''
};

View File

@@ -1,5 +1,5 @@
export const environment = {
production: true,
apiUrl: 'https://3d-fab.ch',
apiUrl: '',
basicAuth: ''
};