From 9e0a9f4eee46570ecd8289010762aee45c23f874 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Fri, 7 Mar 2025 19:10:34 +0100 Subject: [PATCH] website: fix build in docker (#13430) * website: fix build in docker Signed-off-by: Marc 'risson' Schmitt * sigh Signed-off-by: Marc 'risson' Schmitt --------- Signed-off-by: Marc 'risson' Schmitt --- Dockerfile | 3 ++- website/docusaurus.config.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d1404af35..c2bc5da757 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ # Stage 1: Build website FROM --platform=${BUILDPLATFORM} docker.io/library/node:22 AS website-builder -ENV NODE_ENV=production +ENV NODE_ENV=production \ + GIT_UNAVAILABLE=true WORKDIR /work/website diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index e24e74b6e2..ab5f2865c4 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -102,7 +102,8 @@ const createConfig = (): Config => { docs: { id: "docs", sidebarPath: "./sidebars.js", - showLastUpdateTime: true, + showLastUpdateTime: + process.env.GIT_UNAVAILABLE != "true", editUrl: "https://github.com/goauthentik/authentik/edit/main/website/", docItemComponent: "@theme/ApiItem",