From e519c100edd320a1ecaf8f3fe333e5a29b329167 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Tue, 24 Feb 2026 11:52:21 -0700 Subject: [PATCH] Pass DOMAIN build arg to Dockerfile build stage Without ARG/ENV, process.env.DOMAIN was undefined during npm run build, causing llms.txt internal links to use localhost:4321 instead of the production domain. --- docs/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Dockerfile b/docs/Dockerfile index 51ad797..3ca8160 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -15,6 +15,8 @@ CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"] FROM base AS build RUN npm ci COPY . . +ARG DOMAIN=localhost:4321 +ENV DOMAIN=${DOMAIN} ENV ASTRO_TELEMETRY_DISABLED=1 RUN --mount=type=cache,target=/app/.astro \ npm run build