From d13b972c770194f6808cff47e885f83935fb2381 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Sun, 23 Mar 2025 23:54:59 +0000 Subject: [PATCH] oh my fucking god --- .env.production | 1 + Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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