diff --git a/.env.production b/.env.production index c41ca8d..7d66291 100644 --- a/.env.production +++ b/.env.production @@ -11,4 +11,5 @@ NEXT_LOG_LEVEL=error GENERATE_SOURCEMAP=false # API configuration +NEXT_PUBLIC_API_URL=/api SERVER_API_URL=https://internal-api.inboxi.ng/api diff --git a/Dockerfile b/Dockerfile index 530d365..4f93337 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN npm install --force COPY . . -ENV NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api +ENV NEXT_PUBLIC_API_URL=/api # Build the Next.js application RUN npm run build @@ -28,7 +28,7 @@ COPY --from=builder /app/node_modules ./node_modules EXPOSE 3000 ENV NODE_ENV=production -ENV NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api +ENV NEXT_PUBLIC_API_URL=/api # Start Next.js server