fix: use .env for vite build
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m30s
Build and Deploy Go App / deploy (push) Successful in 2m41s

This commit is contained in:
nihonium 2025-10-09 17:13:45 +03:00
parent 1e834ba69c
commit 35fa8dd005
Signed by: nihonium
GPG key ID: 0251623741027CFC

View file

@ -42,10 +42,10 @@ jobs:
cache-dependency-path: modules/frontend/package-lock.json
- name: Build frontend
env:
VITE_BACKEND_API_BASE_URL: ${{ vars.BACKEND_API_BASE_URL }}
# env:
# VITE_BACKEND_API_BASE_URL: ${{ vars.BACKEND_API_BASE_URL }}
run: |
echo "VITE_BACKEND_API_BASE_URL: $VITE_BACKEND_API_BASE_URL"
echo "VITE_BACKEND_API_BASE_URL=${{ vars.BACKEND_API_BASE_URL }}" > .env
cd modules/frontend
npm install
npm run build