From 64b1d69f651d329834fc47fb2674ac997e48d608 Mon Sep 17 00:00:00 2001 From: Tim McMackin Date: Mon, 1 Jul 2024 14:16:14 -0400 Subject: [PATCH] Add noindex on staging builds (#418) * Add noindex on staging builds * Staging builds go through AWS This reverts commit 0d4ea931a16ecb2cb8cd5466a2d3177ca95d00e2. * Add noindex on staging builds --- .github/workflows/deploy-staging.yml | 2 +- docusaurus.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index fb98bb586..f41a80fab 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -18,7 +18,7 @@ jobs: with: node-version: 18 - run: npm ci - - run: npm run build + - run: BUILD_ENV=staging npm run build - uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_S3_STAGE_KEY_ID }} diff --git a/docusaurus.config.js b/docusaurus.config.js index 844299ace..e69af374c 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -43,6 +43,7 @@ const config = { markdown: { mermaid: true, }, + noIndex: process.env.BUILD_ENV == 'staging' ? false : true, headTags: [ {