Repository navigation
Conversation
Leaves out Google Analytics and the production Algolia search when DOCS_PRIVATE_BUILD=true. noindex and robots.txt already follow the site URL, so a private host is covered without extra config. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Code ReviewNo correctness issues found. Checked:
Optional nit: |
Collaborator
Author
|
Closing: the 1Secure Beta docs will live as an unlisted product in this repo instead (see #1850), so a private build flag is no longer needed. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
DOCS_PRIVATE_BUILD=truebuild flag. When set, the build leaves out Google Analytics, the production Algolia search, and the Algolia preconnect tag, and swaps the search box for a null component.noIndexandrobots.txtalready follow the site URL (src/config/indexing.js), so a private host is covered by settingAPP_EXTERNAL_URLto a non-docs.netwrix.comURL.Needed so a separate private repo can build a hidden staging site (1Secure Beta) on top of this framework. The flag is generic and unset by default, so normal builds are unchanged.
Test plan
APP_EXTERNAL_URL=https://beta.example.net DOCS_PRIVATE_BUILD=true DOCS_PRODUCT=1secure npm run buildsucceeds; output hasnoindex, nofollow,Disallow: /, no gtag, no Algolia, no search boxnpm run ci) builds a 1Secure Beta-only site🤖 Generated with Claude Code