From 886edf48728acdf3a99e2e2997c4867a833d1021 Mon Sep 17 00:00:00 2001 From: JOY Date: Sat, 12 Sep 2026 09:09:09 +0000 Subject: [PATCH] fix(docker): point the baked API v2 rewrite at the calcom-api service next.config.ts turns NEXT_PUBLIC_API_V2_URL into a server-side rewrite that is baked at build time, so a runtime override cannot fix it. The image shipped http://localhost:5555/api/v2, which inside the web container resolves to the web container itself where nothing listens, so every /api/v2/* request proxied by the web app failed. The API v2 service is reachable as calcom-api on the shared compose network. --- .github/workflows/deploy-docker.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index de73ee280ed..0a0b38b50aa 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -55,7 +55,12 @@ jobs: NEXTAUTH_SECRET=build-time-placeholder-not-used-at-runtime CALENDSO_ENCRYPTION_KEY=build-time-placeholder-not-used-at-runtime NEXT_PUBLIC_WEBAPP_URL=https://cal.crove.com - NEXT_PUBLIC_API_V2_URL=http://localhost:5555/api/v2 + # next.config.ts bakes this into a server-side rewrite at build time, so it must be + # reachable from inside the web container. "localhost" resolved to the web container + # itself, where nothing listens on 5555, leaving every /api/v2/* call dead. The API v2 + # service is published as "calcom-api" on the shared compose network (API_PORT default + # 5555, see apps/api/v2/src/config/app.ts). Rebuild the image if the service is renamed. + NEXT_PUBLIC_API_V2_URL=http://calcom-api:5555/api/v2 NEXT_PUBLIC_LICENSE_CONSENT=agree NEXT_PUBLIC_APP_NAME=Crove NEXT_PUBLIC_COMPANY_NAME=MetaDOS LLC