chore: enhance frontend configuration for backend integration
- Added environment variables for backend URLs in the Dockerfile to facilitate dynamic configuration. - Updated Next.js configuration to include rewrites for health and API endpoints, improving backend connectivity. - Modified settings page to handle backend URL locking and normalization, enhancing user experience and data integrity.
This commit is contained in:
@@ -8,6 +8,12 @@ COPY packages/contracts/package.json packages/contracts/
|
||||
RUN npm ci --workspace=@mmapp/contracts --include-workspace-root --ignore-scripts
|
||||
|
||||
FROM deps AS build
|
||||
ARG BACKEND_INTERNAL_URL=http://backend:8000
|
||||
ARG NEXT_PUBLIC_BACKEND_URL=same-origin
|
||||
ARG NEXT_PUBLIC_DEFAULT_DATA_SOURCE=live
|
||||
ENV BACKEND_INTERNAL_URL=$BACKEND_INTERNAL_URL
|
||||
ENV NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL
|
||||
ENV NEXT_PUBLIC_DEFAULT_DATA_SOURCE=$NEXT_PUBLIC_DEFAULT_DATA_SOURCE
|
||||
COPY packages/contracts packages/contracts
|
||||
COPY next.config.ts tsconfig.json postcss.config.mjs components.json ./
|
||||
COPY app app
|
||||
|
||||
Reference in New Issue
Block a user