fix: use relative API URL in feature branch UI to eliminate CORS errors
All checks were successful
CI / build (push) Successful in 1m4s
CI / cleanup-branch (push) Has been skipped
CI / docker (push) Successful in 13s
CI / deploy (push) Has been skipped
CI / deploy-feature (push) Successful in 34s

Browser requests now go to the UI origin and nginx proxies them to the
backend within the cluster. Removes the separate API Ingress host rule
since API traffic no longer needs its own subdomain.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-17 13:49:01 +01:00
parent 82117deaab
commit fc412f7251
2 changed files with 1 additions and 11 deletions

View File

@@ -4,16 +4,6 @@ metadata:
name: cameleer-branch-ingress name: cameleer-branch-ingress
spec: spec:
rules: rules:
- host: BRANCH_SLUG-api.cameleer.siegeln.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: cameleer3-server
port:
number: 8081
- host: BRANCH_SLUG.cameleer.siegeln.net - host: BRANCH_SLUG.cameleer.siegeln.net
http: http:
paths: paths:

View File

@@ -38,5 +38,5 @@ patches:
path: /data/config.js path: /data/config.js
value: | value: |
window.__CAMELEER_CONFIG__ = { window.__CAMELEER_CONFIG__ = {
apiBaseUrl: 'http://BRANCH_SLUG-api.cameleer.siegeln.net/api/v1', apiBaseUrl: '/api/v1',
}; };