feat: Externalize API URLs and JWT secret configuration using build arguments and environment variables with default fallbacks.
This commit is contained in:
@@ -14,6 +14,10 @@ WORKDIR /app
|
||||
COPY web/experience/package*.json ./
|
||||
RUN npm install
|
||||
COPY web/experience/ .
|
||||
ARG NEXT_PUBLIC_LMS_API_URL
|
||||
ENV NEXT_PUBLIC_LMS_API_URL=$NEXT_PUBLIC_LMS_API_URL
|
||||
ARG NEXT_PUBLIC_CMS_API_URL
|
||||
ENV NEXT_PUBLIC_CMS_API_URL=$NEXT_PUBLIC_CMS_API_URL
|
||||
RUN npm run build
|
||||
|
||||
# Final stage
|
||||
|
||||
@@ -14,6 +14,8 @@ WORKDIR /app
|
||||
COPY web/studio/package*.json ./
|
||||
RUN npm install
|
||||
COPY web/studio/ .
|
||||
ARG NEXT_PUBLIC_CMS_API_URL
|
||||
ENV NEXT_PUBLIC_CMS_API_URL=$NEXT_PUBLIC_CMS_API_URL
|
||||
RUN npm run build
|
||||
|
||||
# Final stage
|
||||
|
||||
Reference in New Issue
Block a user