From 69f4a6f1caa1f76af2acdd5e68291b111ebadcd8 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Tue, 21 Oct 2025 04:08:53 +0000 Subject: [PATCH] Set frontend API URL at build time. (#18) Reviewed-on: https://git.tiramisu.one/drew/captains-log/pulls/18 Co-authored-by: Drew Galbraith Co-committed-by: Drew Galbraith --- frontend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 207bf93..7033493 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -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"] \ No newline at end of file +CMD ["npm", "run", "start"]