From 16f8c9c432064a9dba6ac56f3c76fd7ee69bad88 Mon Sep 17 00:00:00 2001 From: Matthias Veit Date: Tue, 10 Dec 2024 09:36:35 +0100 Subject: [PATCH] fix: deploy production build --- .github/workflows/deploy.yml | 2 ++ docusaurus.config.ts | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c994b0d9..e21ac204 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,6 +9,8 @@ jobs: build: name: Build Docusaurus runs-on: ubuntu-latest + env: + NODE_ENV: production steps: - uses: actions/checkout@v4 with: diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 28e26210..3263433d 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -13,8 +13,7 @@ import versions from './versions.json'; const isDev = process.env.NODE_ENV === 'development'; const isBuildFast = isDev || !!process.env.BUILD_FAST; -const isProd = - process.env.CURRENT_BRANCH === 'main' && process.env.CONTEXT === 'production'; +const isProd = process.env.NODE_ENV === 'production'; const config: Config = { organizationName: 'someengineering',