fix(cli): add airgapped checks to all external FDR/Venus service calls during fern generate #11596
+29
−14
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.
Description
Refs: Slack thread about airgapped environment failures
Fixes the "FDR registerApiDefinition failed: fetch failed" error that occurs when running
fern generate --docsin air-gapped/self-hosted environments.Revised Approach: After discussion, the fix was updated to keep FDR calls working (they should use the local FDR server via
DEFAULT_FDR_ORIGIN) and only skip external services that don't have local equivalents.Changes Made
startLibraryDocsGeneration) - this external service has no local equivalent@fern-api/lazy-fern-workspacedependency to remote-workspace-runnerWhat's NOT skipped: FDR calls (registerApiDefinition, startDocsRegister, finishDocsRegister, etc.) are NOT skipped because they should work with the local FDR server when
DEFAULT_FDR_ORIGINis properly configured.Testing
pnpm run check,pnpm format)Human Review Checklist
DEFAULT_FDR_ORIGINis properly set in self-hosted environments to point to local FDR serverregisterApi.tswas reverted to original (no airgapped checks) since it only makes FDR callsLink to Devin run: https://app.devin.ai/sessions/7aca72cdf3e44a27878b2f9655970f4e
Requested by: Sandeep Dinesh (@thesandlord)