This commit is contained in:
Hymmel 2025-10-09 09:32:49 +02:00
parent 300ba0c686
commit 33631f6578
2 changed files with 6 additions and 1 deletions

View file

@ -2,8 +2,10 @@ services:
frontend: frontend:
build: build:
context: ./frontend context: ./frontend
args:
NEXT_PUBLIC_BACKEND_URL: ${NEXT_PUBLIC_BACKEND_URL:-https://backend.basetracker.lona-development.org}
environment: environment:
NEXT_PUBLIC_BACKEND_URL: https://backend.basetracker.lona-development.org NEXT_PUBLIC_BACKEND_URL: ${NEXT_PUBLIC_BACKEND_URL:-https://backend.basetracker.lona-development.org}
ports: ports:
- "3100:3000" - "3100:3000"
expose: expose:

View file

@ -2,6 +2,9 @@ FROM node:20-alpine
WORKDIR /app WORKDIR /app
ARG NEXT_PUBLIC_BACKEND_URL="http://localhost:4100"
ENV NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL}
COPY package.json ./ COPY package.json ./
COPY tsconfig.json ./ COPY tsconfig.json ./
COPY next.config.js ./ COPY next.config.js ./