Fix frontend API URL configuration
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Added VITE_API_URL build arg to CI frontend build step - Updated values.yaml frontend env to include /api suffix - Updated .env.example with production URL comment - Frontend was trying to connect to localhost instead of api-brand-master.dvirlabs.com
This commit is contained in:
parent
d0d9084260
commit
ae272440d4
@ -15,6 +15,8 @@ steps:
|
||||
tags:
|
||||
- latest
|
||||
- ${CI_COMMIT_TAG:-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:7}}
|
||||
build_args:
|
||||
- VITE_API_URL=https://api-brand-master.dvirlabs.com/api
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
|
||||
@ -84,7 +84,7 @@ frontend:
|
||||
targetPort: 80
|
||||
|
||||
env:
|
||||
VITE_API_URL: "https://api-brand-master.dvirlabs.com"
|
||||
VITE_API_URL: "https://api-brand-master.dvirlabs.com/api"
|
||||
|
||||
resources:
|
||||
requests:
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
VITE_API_URL=http://localhost:8000/api
|
||||
# For production, set to: https://api-brand-master.dvirlabs.com/api
|
||||
VITE_APP_NAME=Brand Master
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user