From d3b6e2e621c7e08f824a4d2802049fc310636e33 Mon Sep 17 00:00:00 2001 From: Baptiste Devessier Date: Wed, 12 Mar 2025 13:50:59 +0100 Subject: [PATCH] Add Keystatic for twenty-website build (#10798) The Keystatic's environment variables must be defined during the build. @prastoin and I identified that the other environment variables aren't defined during the build. We decided to add fake environment variables directly in the Dockerfile to make the build pass. Later, the docker image should be executed with the real environment variables that'll make Keystatic work properly. --- packages/twenty-docker/twenty-website/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/twenty-docker/twenty-website/Dockerfile b/packages/twenty-docker/twenty-website/Dockerfile index 33d0a2a3b..681da3fb2 100644 --- a/packages/twenty-docker/twenty-website/Dockerfile +++ b/packages/twenty-docker/twenty-website/Dockerfile @@ -12,6 +12,11 @@ COPY ./packages/twenty-website/package.json /app/packages/twenty-website/package RUN yarn +ENV KEYSTATIC_GITHUB_CLIENT_ID="" +ENV KEYSTATIC_GITHUB_CLIENT_SECRET="" +ENV KEYSTATIC_SECRET="" +ENV NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG="" + COPY ./packages/twenty-website /app/packages/twenty-website RUN npx nx build twenty-website