Add API_INTERNAL_URL to frontend deployment for K8s
The Next.js rewrites were falling back to localhost:5001 because API_INTERNAL_URL was not set. This caused API proxy errors. - Added API_INTERNAL_URL=http://workclub-api:8080 - This allows Next.js to proxy /api/* calls to the internal backend service
This commit is contained in:
@@ -50,6 +50,8 @@ spec:
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
- name: API_INTERNAL_URL
|
||||
value: "http://workclub-api:8080"
|
||||
- name: NEXT_PUBLIC_API_URL
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
|
||||
Reference in New Issue
Block a user