diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 8ec32e1..64708ef 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -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: diff --git a/brand-master-chart/values.yaml b/brand-master-chart/values.yaml index b97cf95..41b998e 100644 --- a/brand-master-chart/values.yaml +++ b/brand-master-chart/values.yaml @@ -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: diff --git a/frontend/.env.example b/frontend/.env.example index bed298e..200e283 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -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