Skip to content

Commit

Permalink
Add noindex on staging builds (#418)
Browse files Browse the repository at this point in the history
* Add noindex on staging builds

* Staging builds go through AWS

This reverts commit 0d4ea93.

* Add noindex on staging builds
  • Loading branch information
timothymcmackin authored Jul 1, 2024
1 parent 0643a8b commit 64b1d69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const config = {
markdown: {
mermaid: true,
},
noIndex: process.env.BUILD_ENV == 'staging' ? false : true,

headTags: [
{
Expand Down

0 comments on commit 64b1d69

Please sign in to comment.