Repository navigation
Warn against hosting fern docs dev for readers - #7724
Merged
michaelpratt-postman merged 1 commit intoNov 3, 2026
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
michaelpratt-postman
requested review from
jkonrath-postman and
nerminamiller-postman
as code owners
November 2, 2026 16:44
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
|
🌿 Preview your docs: https://fern-preview-devin-1793637849-docs-dev-not-for-hosting.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
edjvega
approved these changes
Nov 3, 2026
michaelpratt-postman
deleted the
devin/1793637849-docs-dev-not-for-hosting
branch
November 3, 2026 15:26
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
The docs call
fern docs deva local preview server, but they never say not to expose it or use it to host docs. This PR adds that guidance:fern docs devis only for previewing on your own machine. Don't expose it through a reverse proxy, tunnel or open port, because it isn't built for public traffic and it shows role-gated content to anyone who can reach it (with no role selected, it shows all content). Readers are pointed tofern generate --docsfor hosting and to preview links for sharing.fern docs dev: one sentence that links tofern generate --docs.This is related to fern-api/fern#18540, which adds a tokenless, local-only
POST /__fern/shutdowntofern docs dev. Behind a same-host reverse proxy that rewritesHost, anyone can reach that route. That PR isn't released yet, so this page doesn't mention shutdown; the guidance holds whether or not it ships.Testing
valeon both files: no new findings. The 4 existing errors are on unchanged lines./learn/docs/authentication/features/rbac#preview-as-a-role,/learn/docs/preview-publish/publishing-your-docs), or is a same-page anchor (#preview-links,#fern-generate---docs)./learn/docs/preview-publish/preview-changes#local-developmentand thefern docs devaccordion on/learn/cli-api-reference/cli-reference/docs-commands.Link to Devin session: https://app.devin.ai/sessions/3e3169ab6d24438e9a11985d32d0707d
Open in Devin Desktop: https://app.devin.ai/desktop/session/3e3169ab6d24438e9a11985d32d0707d?variant=devin
Requested by: @michaelpratt-postman