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.
This commit is contained in:
Baptiste Devessier
2025-03-12 13:50:59 +01:00
committed by GitHub
parent 96931fa74c
commit d3b6e2e621

View File

@ -12,6 +12,11 @@ COPY ./packages/twenty-website/package.json /app/packages/twenty-website/package
RUN yarn
ENV KEYSTATIC_GITHUB_CLIENT_ID="<fake build value>"
ENV KEYSTATIC_GITHUB_CLIENT_SECRET="<fake build value>"
ENV KEYSTATIC_SECRET="<fake build value>"
ENV NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG="<fake build value>"
COPY ./packages/twenty-website /app/packages/twenty-website
RUN npx nx build twenty-website