Skip to content

Commit 63db328

Browse files
authored
Merge pull request #255 from navapbc/develop
chore: update client env variables for prod
2 parents 4304b35 + 2bf83dc commit 63db328

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ jobs:
178178
--build-arg KERNEL_API_KEY=${{ steps.kernel_key.outputs.key }} \
179179
--build-arg USE_AI_SDK_AGENT=${USE_AI_SDK} \
180180
--build-arg USE_GUEST_LOGIN=${USE_GUEST} \
181+
--build-arg ENVIRONMENT=${{ needs.setup.outputs.environment }} \
181182
-f Dockerfile.ai-chatbot \
182183
-t ${{ steps.images.outputs.chatbot_image }} \
183184
.

Dockerfile.ai-chatbot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ ARG USE_GUEST_LOGIN=false
4141
# Kernel.sh API key (required for AI SDK agent builds)
4242
ARG KERNEL_API_KEY
4343

44+
# Environment name (dev, prod, preview-*, etc.)
45+
ARG ENVIRONMENT=dev
46+
4447
# Set environment variables for build time
4548
ENV PLAYWRIGHT_MCP_URL=${PLAYWRIGHT_MCP_URL}
4649
ENV BROWSER_STREAMING_URL=${BROWSER_STREAMING_URL}
@@ -52,6 +55,8 @@ ENV NEXT_PUBLIC_USE_AI_SDK_AGENT=${USE_AI_SDK_AGENT}
5255
ENV USE_GUEST_LOGIN=${USE_GUEST_LOGIN}
5356
ENV NEXT_PUBLIC_USE_GUEST_LOGIN=${USE_GUEST_LOGIN}
5457
ENV KERNEL_API_KEY=${KERNEL_API_KEY}
58+
ENV ENVIRONMENT=${ENVIRONMENT}
59+
ENV NEXT_PUBLIC_ENVIRONMENT=${ENVIRONMENT}
5560

5661
# Build Next.js client only (migrations run at container startup)
5762
RUN pnpm next build

client

0 commit comments

Comments
 (0)