fix: update API base URL and add healthcheck for backend service
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m30s

This commit is contained in:
almazlar
2026-02-22 12:29:53 +03:00
parent fac79b70b6
commit 4050c08859
4 changed files with 12 additions and 3 deletions

View File

@@ -6,6 +6,10 @@ RUN npm install
COPY . .
ARG VITE_APP_VERSION=dev
ENV VITE_APP_VERSION=${VITE_APP_VERSION}
ARG VITE_BASE_URL=https://todo.almazlar.com/api
ENV VITE_BASE_URL=${VITE_BASE_URL}
RUN npm run build
# Run stage

View File

@@ -2,7 +2,7 @@
// Vite automatically injects the variable defined in .env.* based on the current mode.
// `import.meta.env.VITE_BASE_URL` is the single source of truth for the API root.
const BASE_URL = import.meta.env.VITE_BASE_URL;
const BASE_URL = import.meta.env.VITE_BASE_URL + '/todos';
// -----------------------------------------------------------------------------
// API helpers