Set frontend API URL at build time.
All checks were successful
Check / Backend (pull_request) Successful in 5m55s
Check / Frontend (pull_request) Successful in 2m41s

This commit is contained in:
Drew 2025-10-18 21:04:44 -07:00
parent ef609f748d
commit 270e89214d

View file

@ -12,6 +12,7 @@ FROM node:20-alpine AS build-env
COPY . /app/
COPY --from=development-dependencies-env /app/node_modules /app/node_modules
WORKDIR /app
ENV VITE_API_URL=https://tasks.tiramisu.one
RUN npm run build
FROM node:20-alpine
@ -19,4 +20,4 @@ COPY ./package.json package-lock.json /app/
COPY --from=production-dependencies-env /app/node_modules /app/node_modules
COPY --from=build-env /app/build /app/build
WORKDIR /app
CMD ["npm", "run", "start"]
CMD ["npm", "run", "start"]