docs(self-hosted): static Astro serving replaces Next.js + cache proxy - #6725
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
docs(self-hosted): static Astro serving replaces Next.js + cache proxy#6725devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
…env vars Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
|
🌿 Preview your docs: https://fern-preview-devin-1787505289-self-hosted-static-astro.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
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 self-hosted docs container no longer runs a Next.js server behind a caching proxy: the docs site is pre-rendered as a static build inside the image and served off disk. That makes the self-hosted docs pages describing cache warmup, cache-proxy tuning, and Node heap sizing wrong, and it means the server-tuning environment variables customers may have in their Dockerfiles and Kubernetes manifests no longer do anything. This PR deletes that stale configuration surface, corrects the base-path and health-check descriptions to the static model, and adds a changelog entry telling customers which variables to remove. Serving is faster and more predictable, and self-hosted configuration is smaller.
Implements docs for: feat(self-hosted): serve self-hosted docs with Astro static output (fern-api/fern-platform#13991)
Changes
fern/products/docs/pages/self-hosted/self-hosted-set-up.mdxNODE_MEMORY_LIMITrow. Verified gone from the container in the PR diff and absent fromservers/self-hosted/onmain:NODE_MEMORY_LIMIT,WARMUP,WARMUP_TIMEOUT,CACHE_MAX_ENTRIES,CACHE_MAX_ENTRY_SIZE,CACHE_DEFAULT_TTL,CACHE_CDN_TTL,CACHE_DISABLED,CACHE_PROXY_DEBUG.CUSTOM_DOMAIN,FERN_LOG_LEVEL,NEXT_PUBLIC_BASE_PATH,CORS_PROXY_ALLOWED_DOMAINS, andENABLE_JAEGER— all still read by the container (scripts/run.sh,scripts/static-server/config.ts).FERN_KEEP_BUILD_TOOLS=1or runtime generation) and remains incompatible withreadOnlyRootFilesystem: true(scripts/run.shstatic-site block).fern/products/docs/pages/self-hosted/health-check-endpoints.mdx/__healthplus the docs landing page (scripts/readiness.sh,scripts/liveness.sh). Ports 3000/8081 and the/liveness,/readiness,/healthcontracts are unchanged.fern/products/docs/pages/self-hosted/self-hosted-static-export.mdx-e WARMUP=true, and the readiness gate uses the documentedhttp://localhost:8081/readinessprobe instead of the removed admin-token-gated/__cache/statsendpoint (scripts/export.shnow uses/__admin/exportand/tmp/.fern-admin-token;/scripts/export.shand the export tarball path are unchanged).fern/products/docs/pages/changelog/2026-08-23.mdx— new entry listing the removed variables.Note for reviewers
The On-page feedback section on the setup page documents
[fern-docs-feedback]stdout logs. That handler lives in the Next.js bundle route (packages/fern-docs/bundle/.../api/fern-docs/feedback-log/route.ts) and I found no equivalent in the self-hosted static server, but PR #13991 doesn't touch it, so I left the section alone rather than guess. Worth confirming it still works in the static container.Validation
pre-commit run --files <changed>: passes (remaining Vale warnings are on pre-existing lines).cd fern && npx fern-api@5.59.0 check --warnings: 0 errors.Link to Devin session: https://app.devin.ai/sessions/b7e8e7bf59294e0db199eec091ecf8db