From 2b5f2748864218c4b2a546d49185be320cc1b919 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Mon, 19 Oct 2026 14:05:43 -0400 Subject: [PATCH] fix(docker): pass NEXT_PUBLIC_ARENA_URL into the production build Coolify marks this variable build-time and passes it as a build arg, but the builder stage never declared it, so `next build` saw an empty value and inlined nothing. The client transport reads `process.env.NEXT_PUBLIC_ARENA_URL` with dot access, so an empty build value silently left every install on the HTTP fallback path. Declare the arg and forward it through ENV before the build, the same way the GIT_* build args are handled. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index b1158de6..a7535345 100644 --- a/Dockerfile +++ b/Dockerfile @@ -130,6 +130,11 @@ ENV SOURCE_COMMIT=$SOURCE_COMMIT \ GIT_COMMIT_HASH=$GIT_COMMIT_HASH \ GIT_COMMIT_DATE=$GIT_COMMIT_DATE \ GIT_COMMIT_SUBJECT=$GIT_COMMIT_SUBJECT +# Public arena origin for the client bundle. Next.js inlines NEXT_PUBLIC_* +# at build time, and Coolify passes build-time variables as build args; the +# bare ARG preserves the injected value and ENV forwards it to the build. +ARG NEXT_PUBLIC_ARENA_URL +ENV NEXT_PUBLIC_ARENA_URL=$NEXT_PUBLIC_ARENA_URL RUN bun run build # ───────────────────────── runner-arena ────────────────────────────